简体   繁体   中英

Is there a way to authenticate a user (using some local PC info) without going through login page in Azure?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM