简体   繁体   中英

Asp.net mvc ADD authentication account controller

I've created a project in Visual Studio 2017 with Azure authentication. In my _LoginPartial.cshtml I see a line like:

 <li><a asp-area="AzureAD" asp-controller="Account" asp-action="SignOut">Sign out</a></li>

But I see neither AzureAD asp-area nor AccountController in the solution explorer.

Are they baked in microsoft dll's now?

Yes, you're right.

AzureAD asp-area and AccountController are baked in Microsoft.AspNetCore.Authentication.AzureAD.UI dll.

For the details, you could find here .

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