microsoftgraph / aspnetcore-connect-sample

[ARCHIVED] This ASP.NET Core MVC sample shows how to connect to Microsoft Graph using delegated permissions and the Azure AD v2.0 (MSAL) endpoint.
MIT License
123 stars 96 forks source link

User.Identity.Name #15

Closed KaiserSozei87 closed 6 years ago

KaiserSozei87 commented 6 years ago

Any idea why User.Identity.Name would be null? I was previously using Azure AD only authentication out of the box from Microsoft. I have no switched over to using this sample with the Graph API and the /common/v2.0 library. Feel like i've missed something somewhere but not sure where to start?

mark-szabo commented 6 years ago

Thanks, fixed.

More info: https://cerkit.com/2017/07/25/asp-net-core-jwt-tokens-and-user-identity-name-property/

KaiserSozei87 commented 6 years ago

Nice fix. Thanks