We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd95858 + d759b61 commit aba90dcCopy full SHA for aba90dc
1 file changed
modules/go5auth/lib/Auth/Source/LoggedUser.php
@@ -70,6 +70,7 @@ public function authenticate(&$state)
70
71
$userAttributes = [];
72
$userInfoAttributes = $userInfo->data->attributes;
73
+ $userInfoAttributes->role = $tokenInfo->user_role;
74
$userAttributesMapping = $metadataSP['UserAttributesMapping'];
75
76
if (is_array($userAttributesMapping) && !empty($userAttributesMapping)) {
@@ -86,6 +87,8 @@ public function authenticate(&$state)
86
87
'document-type' => $userInfoAttributes->{'document-type'},
88
'name' => $userInfoAttributes->{'name'},
89
'last-name' => $userInfoAttributes->{'last-name'},
90
+ 'job-title-name' => $userInfoAttributes->{'job-title-name'},
91
+ 'role' => $userInfoAttributes->{'role'},
92
];
93
}
94
0 commit comments