-
Notifications
You must be signed in to change notification settings - Fork 28
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
The necessity of line 51-56 in lib/Auth/Source/MicrosoftHybridAuth.php
#53
Comments
Hi @iamCristYe , Were you testing with Microsoft Live accounts or Azure AD accounts, and did the Azure AD accounts have office 365 subscriptions? When we wrote the original code we found each of those types of accounts returned the attributes in different places. |
@pradtke Hi! Thanks for your quick response. I modified the lines to
Then I tested with several accounts: With my personal MS account: (Note that microsoft.mail is not returned.)
With another testing personal MS account: (microsoft.mail is not returned and this account's primary alias has letters in upper case)
(For Personal MS account, testing with https://docs.microsoft.com/en-us/graph/traverse-the-graph#code-try-1 also returned null for With my school account (This one with Microsoft 365 subscription):
With another school account (This one without Microsoft 365 subscription):
based on the testing result, you can see that Thus, I believe the lines are not necessary and the data from Microsoft Graph is enough already. |
Thanks for the details explanation and examples. I'll take a look at removing those as we create the next release for SSP version 2. |
It seems that Microsoft is now returning "microsoft.email" for personal Microsoft Accounts: Edit: I just realized it's there just because of line 53... |
Recently I noticed that
microsoft.name
is a duplicated value ofmicrosoft.displayName
. Thus I doubt the necessity of line 51-56 inlib/Auth/Source/MicrosoftHybridAuth.php
.After some research, I found out the
email
andname
value in token seems to be duplicate ofmicrosoft.mail
andmicrosoft.displayName
. Plus, the originalmicrosoft.mail
field got overwritten in this way, so I think it's better to simply remove these lines.The text was updated successfully, but these errors were encountered: