简体   繁体   English

用于 Azure 中部署的多个 MVC 应用程序的 ASP.NET MVC 单点登录身份验证

[英]ASP.NET MVC Single Sign ON Authentication for multiple MVC applications deployed in Azure

We have multiple websites using ASP.NET MVC deployed in Azure.我们在 Azure 中部署了多个使用 ASP.NET MVC 的网站。

Consider each portal URLs are like this ( site1.azurewebsites.net, site2.azurewebsites.net, site3.cloudapp.net).考虑每个门户 URL 都是这样的(site1.azurewebsites.net、site2.azurewebsites.net、site3.cloudapp.net)。 Each URL has their login page with their own DB for login authentication.每个 URL 都有自己的登录页面,其中包含用于登录身份验证的自己的数据库。 We have complete control of DB and site application URLs.我们可以完全控制数据库和站点应用程序 URL。

We want to add one single common URL for authenticating the user in all 3 systems and provide links to enable / disable access respective site URLs with out asking them to login again.我们希望添加一个通用 URL 用于在所有 3 个系统中对用户进行身份验证,并提供链接以启用/禁用访问各个站点 URL,而无需要求他们再次登录。

Please advise the approach to implement Single Sign On to handle this scenario.请告知实施单点登录的方法来处理这种情况。


We want to add one single common URL for authenticating the user in all 3 systems.我们想添加一个通用 URL 来在所有 3 个系统中验证用户。

If you have many web applications in origination and they interreact with each other, you can implement single sign-on multiple applications in that case you can use Azure AD.如果您有许多原始 Web 应用程序并且它们相互交互,您可以实现单点登录多个应用程序,在这种情况下您可以使用 Azure AD。 In Azure AD users can access multiple applications with a single sign On.在 Azure AD 中,用户可以通过单点登录访问多个应用程序。

provide links to enable / disable access respective site URLs with out asking them to login again.提供链接以启用/禁用访问各个站点的 URL,而不要求他们再次登录。

In azure active directory you can not enable/disable from programmatically .在 azure 活动目录中,您不能以编程方式启用/禁用。 you have to use portal to enable/disable uses.您必须使用门户启用/禁用使用。

The following documents will help you to implement the Azure AD sign-in web application.以下文档将帮助您实现 Azure AD 登录 Web 应用程序。

Add Sign-in with Microsoft to a web App by Microsoft documents Web app that signs in users by Microsoft documents通过 Microsoft 文档将 Sign-in with Microsoft 添加到 Web 应用程序通过 Microsoft 文档使用户登录的 Web 应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM