Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Azure ADB2C for OpenId differences #1171

Closed

Conversation

baradhili
Copy link

@baradhili baradhili commented Mar 8, 2024

This seems to work for me. Have included URL I relied on for scope space separator as well as handling if the $user['email'] is an array or not since there is no spec from MS saying it will always be a scalar
fixes #1320

@@ -198,11 +204,18 @@ private function validateIdToken($idToken)
*/
protected function mapUserToObject(array $user)
{
//check is $user['email'] is array - it shouldn't be, but we are not sure
if (is_array($user['email'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should also make sure this is not empty? Or alt, just do
$user['email'][0] ?? $user['email']

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also good, I'll change to your line and resubmit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries.

@codespearhead
Copy link

@baradhili Can you link this PR to issue #1320 so that it's closed automatically once this PR is merged?

To do this, you just need to add the following to the end of the PR description:

fixes #1320

@baradhili
Copy link
Author

Looks like master has updated to handle this.

@baradhili baradhili closed this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants