ActiveDirectoryMembershipProvider with Azure Active Directory

a 夏天 提交于 2019-12-13 16:27:43

问题


I realize there are other (preferred) ways of implementing authentication with Azure Active Directory, but is it possible to use the standard ActiveDirectoryMembershipProvider with Azure Active Directory for an Azure website?


回答1:


No. There is no way to use ActiveDirectoryMembershipProvider with Azure Active Directory. . (Period) :)

Why?

ActiveDirectoryMambershipProvider uses Active Directory Application Mode (ADAM) server and talks to AD over LDAP protocol. Both of which are not supported by Azure AD. The replacement of LDAP in the Cloud is Azure AD Graph API.

You can however use the Claims Based Authentication / Authorization model and protect your web site with Azure AD. This will help with Authentication. Authorization - you can use the role based access control and have your Azure AD groups translated into ASP.NET roles.

Here is pretty long and well described process of how to protect a web site with Azure AD without writing single line of custom code.



来源:https://stackoverflow.com/questions/27508484/activedirectorymembershipprovider-with-azure-active-directory

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