1011 B
1011 B
How to set up the sample locally
Set up Azure Active Directory
- Create your own Azure Active Directory (AD). Save the "tenent name".
- Add a new Application: in the Azure AD portal, select Application, and click Add in the drawer.
- Set the sign-on url to
http://localhost:42023. - Select the newly created Application, navigate to the Configure tab.
- Find and save the "Client Id"
- In the keys section add a new key. A key value will be generated. Save the value as "Client Secret"
Configure the local environment
- Set environment ASPNETCORE_ENVIRONMENT to DEVELOPMENT. (Working with Multiple Environments)
- Set up user secrets:
dotnet user-secrets set oidc:clientid <Client Id>
dotnet user-secrets set oidc:clientsecret <Client Secret>
dotnet user-secrets set oidc:authority https://login.windows.net/<Tenent Name>.onmicrosoft.com