简体   繁体   English

在 Web 窗体应用程序中实现 Azure ADFS

[英]Implementing Azure ADFS in Web Forms Application

I have a traditional ASP.NET 3.5 Web Forms application.我有一个传统的 ASP.NET 3.5 Web 窗体应用程序。 As of now it is using On-Premise ADFS which is working fine.截至目前,它正在使用运行良好的本地 ADFS。 Now we have a requirement to change on-premise ADFS to Azure ADFS.现在我们需要将本地 ADFS 更改为 Azure ADFS。

In the web.config, I have changed the required URL to point to Azure ADFS but it is not working.在 web.config 中,我已将所需的 URL 更改为指向 Azure ADFS,但它不起作用。 I checked Stackoverflow and Googled around but I found examples related to ASP.NET MVC and ASP.NET Core where changes are required in Startup.cs file.我检查了 Stackoverflow 并在谷歌上搜索,但我发现了与 ASP.NET MVC 和 ASP.NET Core 相关的示例,其中 Startup.cs 文件中需要更改。

I want to know what all changes are required in my traditional Web Forms application.我想知道在我的传统 Web 窗体应用程序中需要进行哪些更改。 Any example link would help.任何示例链接都会有所帮助。

You should be able to get it working by using the Azure AD parameters rather than the ADFS ones eg metadata.您应该能够通过使用 Azure AD 参数而不是 ADFS 参数(例如元数据)来使其工作。 What protocol are you using?你使用什么协议?

There are some ADFS samples .有一些 ADFS 示例 Look at the LHS under ADAL and MSAL.查看 ADAL 和 MSAL 下的 LHS。 These generally start with an Azure AD sample and show how to convert to ADFS.这些通常从 Azure AD 示例开始,并展示如何转换为 ADFS。 So you can then work "backwards".所以你可以“向后”工作。

Update更新

I had a look at that code.我看了一下那个代码。 It looks like OIDC?看起来像OIDC? "Redirect_Uri" is not a WS-Fed parameter. “Redirect_Uri”不是 WS-Fed 参数。

There is a WS-Fed sample here .有一个WS-美联储样品在这里

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

相关问题 将 Azure ADFS 与现有 ASP.NET Web 应用程序连接的过程和要求 - Procedure and Requirement for connecting Azure ADFS with existing ASP.NET web application Asp.net Web窗体Web应用程序中的Azure AD身份验证 - Azure AD Authentication in Asp.net web forms web application 在Web应用程序中实施搜索 - Implementing search in web application 使用ADFS实施SSO - Implementing SSO using ADFS Azure DevOps Continuous Integration with asp.net web forms website project instead of web application - Azure DevOps Continuous Integration with asp.net web forms website project instead of web application 使用OpenRasta和Web表单实现简单的CRUD - Implementing simple CRUD with OpenRasta and Web Forms 使用ADFS声明的ASP.NET Web应用程序授权 - ASP.NET Web Application Authorization using ADFS Claims ADFS openid-connect 从没有 OWIN 的 Web 应用程序 - ADFS openid-connect from web application without OWIN 在Azure上使用SqlMembership Provider和Forms身份验证连接ASP.NET Web应用程序 - Wiring up ASP.NET Web Application using Forms Authentication with SqlMembership Provider on Azure 如何在 ASP.NET Web 应用程序中实现 MS Azure AD 认证? - How to Implement MS Azure AD Authentication in ASP.NET Web application through Forms?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM