Skip to content

Commit

Permalink
Merge pull request #1577 from ConductionNL/fix/beheer-358/also-accept…
Browse files Browse the repository at this point in the history
…-group

catch another ADFS error
  • Loading branch information
rjzondervan authored Oct 24, 2023
2 parents 6bd64b4 + 68b4d82 commit bdf8be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Security/OIDCAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function authenticate(Request $request): PassportInterface
if($doctrineUser instanceof User === false) {
$doctrineUser = new User();
}
$doctrineUser->setName($result['name']);
$doctrineUser->setName($result['name'] ?? $result['sub']);
$doctrineUser->setEmail($result['email']);
$doctrineUser->setPassword('');
$doctrineUser->addApplication($this->applicationService->getApplication());
Expand Down

0 comments on commit bdf8be1

Please sign in to comment.