Skip to content

Commit

Permalink
Fix auth_oidc overwriting email with UPN
Browse files Browse the repository at this point in the history
  • Loading branch information
aspark21 authored and Matthias Opitz committed Dec 12, 2023
1 parent 5b42f2b commit 9feea70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/loginflow/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function get_userinfo($username) {
// If local_o365 is installed, but all field mapping fields are in token, then use token.
$fieldmappingfromtoken = false;
// Process both ID token and access tokens.
$tokenames = ['idtoken', 'token'];
$tokenames = ['idtoken'];

foreach ($tokenames as $tokename) {
$token = jwt::instance_from_encoded($tokenrec->$tokename);
Expand Down Expand Up @@ -212,7 +212,7 @@ public function get_userinfo($username) {
$userdata = [];

// Process both ID token and access tokens.
$tokenames = ['idtoken', 'token'];
$tokenames = ['idtoken'];

foreach ($tokenames as $tokename) {
try {
Expand Down

0 comments on commit 9feea70

Please sign in to comment.