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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baradhili
Copy link

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

@codespearhead
Copy link

Closes #1165

@@ -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.

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.

None yet

3 participants