简体   繁体   English

如何在 MVC 应用程序中将 ASP.NET 成员资格迁移到 SAML?

[英]How to migrate ASP.NET membership to SAML in an MVC application?

I want to migrate the ASP.NET membership authentication/authorization of an MVC application into SAML.我想将 MVC 应用程序的 ASP.NET 成员身份验证/授权迁移到 SAML。

Could you please provide any suggestions or links that can guide me on implementation.您能否提供任何可以指导我实施的建议或链接。

I know we can use Azure App Proxy and SAML SSO for on-premise applications.我知道我们可以将 Azure 应用代理和 SAML SSO 用于本地应用程序。

But On-premise MVC application has ASP.NET Membership implemented for Role authorization and LDAP for authentication.但是本地 MVC 应用程序为角色授权和 LDAP 实现了 ASP.NET 成员身份以进行身份​​验证。

How can we convert it to enable SAML.我们如何将其转换为启用 SAML。 Do we need any code change.我们需要任何代码更改。

Kindly suggest.请建议。

ASP.NET membership does everything inside the application using a database. ASP.NET 成员资格使用数据库在应用程序内部执行所有操作。

So authentication and authorisation are both handled by the membership provider.因此身份验证和授权都由成员资格提供者处理。

In SAML, this is outsourced to the SAML provider.在 SAML 中,这被外包给 SAML 提供商。

On login, the application redirects to the IDP where the user authenticates and then a SAML token is returned that contains the SAML assertions ie claims some of which may be roles.登录时,应用程序重定向到用户进行身份验证的 IDP,然后返回包含 SAML 断言的 SAML 令牌,即声称其中一些可能是角色。

So you may have to migrate the users to the SAML IDP.因此,您可能必须将用户迁移到 SAML IDP。 If they are already there, use the NameID claim in the assertion to match against the user in the database.如果它们已经存在,请在断言中使用 NameID 声明来匹配数据库中的用户。

To talk to the SAML IDP, you need to add a SAML client side stack .要与 SAML IDP 对话,您需要添加 SAML 客户端堆栈

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

相关问题 如何将ASP.NET Web窗体应用程序从成员身份迁移到ASP.NET Identity 2.0? - How to migrate ASP.NET Web Forms application from Membership to ASP.NET Identity 2.0? 如何将 asp.net webform 和 mvc 4 应用程序迁移到 AngularJS 站点 - How to migrate an asp.net webform and mvc 4 application to AngularJS site 我如何将一个简短的 ASP.NET WebForms 应用程序迁移到 ASP.NET MVC 应用程序? - How i can migrate a short ASP.NET WebForms Application to ASP.NET MVC Application? ASP.NET成员资格(不是MVC) - ASP.NET membership (not MVC) 使用ASP.Net成员资格提供程序登录问题的MVC 3应用程序 - MVC 3 Application With ASP.Net Membership Provider Login Issue 如何使ASP.NET MVC应用程序使用我的成员资格表? - How do I make an ASP.NET MVC application use my Membership tables? 如何在ASP.NET MVC应用程序中附加自定义成员资格提供程序? - How can I attach a custom membership provider in my ASP.NET MVC application? 如何在 asp.net mvc 中使用内置成员资格 - How to use built-in membership in asp.net mvc 如何在ClassLibrary中的ASP.NET MVC 4中重写成员资格提供程序? - How to override the membership provider in ASP.NET MVC 4 in ClassLibrary? 如何在使用Membership时测试ASP.NET MVC 3身份验证 - How to test ASP.NET MVC 3 authentication when using Membership
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM