Updated token info on instrospection

* user_email_verified
* user_pic

Change-Id: Ie6040f9bf18033fa7ef177ede961edf683fed6ed
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-01-15 12:21:11 -03:00
parent b53af79f93
commit d9b86ac20a
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ class OAuth2AccessTokenValidationResponse extends OAuth2DirectResponse {
$this['user_last_name'] = $user->getLastName();
$this['user_language'] = $user->getLanguage();
$this['user_country'] = $user->getCountry();
$this['user_email_verified'] = $user->isEmailVerified();
$this['user_pic'] = $user->getPic();
// default empty value
$user_groups = [];
foreach ($user->getGroups() as $group){