You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace authkit2\Events;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Notification for a user along with their info provided by OIDC provider.
|
|
|
|
*/
|
|
|
|
class UserInfoEvent extends UserEvent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Additional fields returned during login.
|
|
|
|
*
|
|
|
|
* @var mixed
|
|
|
|
*/
|
|
|
|
public $fields;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize new event.
|
|
|
|
*
|
|
|
|
* @param mixed $user
|
|
|
|
* @param array<string,string> $fields
|
|
|
|
*/
|
|
|
|
public function __construct($user, array $fields)
|
|
|
|
{
|
|
|
|
parent::__construct($user);
|
|
|
|
$this->fields = $fields;
|
|
|
|
}
|
|
|
|
}
|