-
Notifications
You must be signed in to change notification settings - Fork 219
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
User.Identity.Name in v.1.9.0 now shows displayname instead of account name #1136
Comments
@Yomodo : do you have repro steps?
|
This is a .NET 5 blazor server web app. |
@Yomodo : could you please check what happens if you force Microsoft.IdentityModel assemblies to be version="6.8.*" ?
|
These are the used package references:
|
I understand, @Yomodo |
Thank you very much @Yomodo for trying this. |
I think I'm seeing something similar. Downgrading System.IdentityModel.Tokens.Jwt to 6.8.0 resolved my problem. To repo:
}` You will get a Reverting back to Microsoft.Identity.Web 1.8.2 resolves issue. |
thanks for the quick update @travisneale and investigation. |
@jennyf19 @travisneale while we look into this, in general the pattern: It would be helpful to have the jwt token that was used. |
@travisneale @Yomodo i'm not able to repro it w/a Blazor server web app, which calls Graph. Can you provide repro code? |
My issue started with the exact same code as provided by @travisneale. |
Identity.Model just added an issue for this regression: AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#1627 |
https://github.com/travisneale/MID-1136 To get this app to work: You will need to add domain name, tenant ID, client ID to the appsettings.json file to point to your AzureAD, which will need the app registration with a Redirect URI pointing to https://localhost:44367/signin-oidc (or whatever local host port number you set). |
@travisneale the repro was super helpful. thank you so much. we should have a workaround out in our next release 1.9.1 on 4.14. |
@jennyf19 Thank you for the quick patch! |
@Yomodo @travisneale we just released Microsoft.Identity.Web 1.9.1 which works around this issue until IdentityModel provides a definitive fix. |
Thanks a lot everyone! |
@travisneale @Yomodo Are you able to try out this branch which removes the workaround we had in place? @brentschmaltz made the fix in Wilson, so I've removed the workaround in MS Id Web and we automatically pick up the latest wilson build (6.10.2 has the fix in this case). I tested w/the sample @travisneale provided and seems to work as expected. Would one of you mind confirming? This will be in our next release (1.10). cc: @jmprieur |
Yes, all is fine now. Thanks again! |
Which version of Microsoft Identity Web are you using?
Microsoft.Identity.Web 1.9.0
Microsoft.Identity.Web 1.8.2: user.Identity.Name contains my account name (UPN): "account@TENANT.onmicrosoft.com"
Microsoft.Identity.Web 1.9.0: user.Identity.Name contains my account display name.
The text was updated successfully, but these errors were encountered: