Authentication thought Azure AD in application hosted on IIS

自古美人都是妖i 提交于 2021-01-28 12:22:14

问题


Is there possibility to authenticate users through Azure Active Directory when my application written in ASP.NET 5 and MVC 6 is hosted on IIS (not on Azure)? Use case is to have users stored in Azure AD and while login to my application I would checks users in Azure AD. I was thinking about custom ApplicationUserStore which would connect Azure AD.


回答1:


Yes, it is definitely possible to authenticate users through Azure Active Directory (AAD) for ASP.NET 5 and MVC 6 application.

You could use the Azure Active Directory Authentication Library nuget published by Microsoft to manage the AAD authentication in your application.

Note: The current stable release of the above nuget does not support ASP.NET 5.

You will need to use the newer pre-release version for ASP.NET 5 support.

Reference: Active Directory Authentication Library NuGet page

Hope this helps!



来源:https://stackoverflow.com/questions/34693881/authentication-thought-azure-ad-in-application-hosted-on-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!