Scenario: if user is part of X company (tenant), app (hosted in Azure) should be able to skip the login page and authenticate user based on some information (for example Azure AD).
If the user is outside of X company (email@othercompany.com) the same app should print a login page in other to authenticate.
Is is possible?
Choose the template based on requirement from Visual Studio
I have chosen Asp.net Core Web App
Choose the Tenants and click on finish button.
Then the required NuGets are installed in the application.
TenantId and ClientId will be stored in the Appsettings.json
file.
Then it will automatically logins with the windows credentials
From different machine or outside company will prompt to login or choose another account.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.