身份验证认为Azure AD在IIS上托管的应用程序中 [英] Authentication thought Azure AD in application hosted on IIS

查看:95
本文介绍了身份验证认为Azure AD在IIS上托管的应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用ASP.NET 5和MVC 6编写的应用程序承载在IIS(不是Azure)上时,是否可以通过Azure Active Directory对用户进行身份验证?用例是将用户存储在Azure AD中,并且在登录到我的应用程序时,我将检查Azure AD中的用户.我正在考虑将连接Azure AD的自定义ApplicationUserStore.

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.

推荐答案

是的,绝对有可能通过ASP.NET 5和MVC 6应用程序的Azure Active Directory(AAD)对用户进行身份验证.

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

您可以使用Microsoft发布的 Azure Active Directory身份验证库 nuget来管理应用程序中的AAD身份验证.

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

注意:上述nuget的当前稳定版本不支持ASP.NET5.

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

您将需要使用较新的预发行版本以获得ASP.NET 5支持.

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

参考: Active Directory身份验证库NuGet页面

希望这会有所帮助!

这篇关于身份验证认为Azure AD在IIS上托管的应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆