Azure-Samples / active-directory-dotnet-graphapi-console

A .NET console application that performs various queries against the Azure AD Graph API using both user identities and application identities.
79 stars 77 forks source link

Cannot sign in as user that created the Azure AAD account #47

Closed daxfohl closed 2 years ago

daxfohl commented 7 years ago

I created an Azure account using my gmail address, so tenant is daxfohlgmail. But I'm not able to sign in using that address. Rather the sign-in screen validates my password and appears to sign me in but then takes me right back to the sign-in after all is done. If I manually close the sign-in screen, the GetTokenForUser just returns null and nothing works.

I manually created another admin user in the web portal. When I use this user to log in, everything works.

image

I should be able to log in as the original user too though, right? What am I doing wrong?