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

Supported account types issue #46

Closed TCrosmanDSI closed 4 years ago

TCrosmanDSI commented 5 years ago

Where do i set supported account types? It's not an option when registering the application in Azure, and I don't see it in the manifest.

I can only get this example to run if i select "Accounts in any organizational directory", but I'd like to only allow internal users.

mark-szabo commented 4 years ago

You need to set this when you register the application on the Azure portal: image

As well when you create the ConfidentialClientApplication. .WithAuthority()'s second parameter has 4 options: