I have existing Asp.net core 2.0 application. I am trying to add Authentication with Azure Active Directory connected service to it. When I tried to right click on connected services and checked for Authentication with Azure Active Directory connected service, I did not find the option. I searched online and found that for existing asp.net core applications there is not connected service option. What will be the work around in this case? any hints?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
You can try below steps :
Install the package :
Microsoft.AspNetCore.Authentication.AzureAD.UI
Modify the Startup.cs to enable Azure AD Authentication:
Add the authentication middleware to Configure :
Modify the
appsettings.json
to add the Azure AD app settingsAnother way is to config the OpenId Connect Middlerware manually , you can refer to below article :
https://joonasw.net/view/aspnet-core-2-azure-ad-authentication