Azure-Samples / ms-identity-aspnet-webapp-openidconnect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.
MIT License
171 stars 72 forks source link

cca.users.count is zero even after logging in. #8

Closed metro-mark closed 6 years ago

metro-mark commented 7 years ago

This problem happens sometimes but not all the time. My organization has AD FS. I run F5, successfully login and stop debugging from VS. Sometimes even after successful login, cca.Users count in readmail shows zero. After logging out and logging in, the problem disappears. Is the problem due to having AD FS? It's been driving me crazy for a couple of months and any insight will be helpful. I have tried virtually all samples using openidconnect and they all have the same issue.

bhlee90 commented 7 years ago

It's the same for me, except that I don't have AD FS; I use Azure AD. I created a forum discussion on my issue. I am using .NET Core 1.1.

jmprieur commented 6 years ago

you probably want to have a look at this sample: https://github.com/Azure-Samples/active-directory-dotnet-webapp-openidconnect-aspnetcore