简体   繁体   English

ASP.NET C#中的ADFS

[英]ADFS in asp.net c#

i am new to ADFS and learning to implement it in my already developed application which is in asp.net c#. 我是ADFS的新手,正在学习在已经开发的应用程序asp.net c#中实现它。

With the help of this link i have added code in my application but now it gives error: 借助此链接,我在应用程序中添加了代码,但现在却出现错误:

Unable to load DLL 'ifsutils.dll': The specified module could not be found. 无法加载DLL'ifsutils.dll':找不到指定的模块。 (Exception from HRESULT: 0x8007007E) (来自HRESULT的异常:0x8007007E)

Can anyone help please? 有人可以帮忙吗?

Also, i am using Server2012R2 and framework 4.0, do i need to follow step 4 from the link . 另外,我正在使用Server2012R2和Framework 4.0,我是否需要从链接中遵循步骤4。

Thank you in advance 先感谢您

That link is for an extremely old version of AD FS and isn't the current guidance. 该链接适用于AD FS的一个非常旧的版本,不是当前指南。

You need to give more details about the version of AD FS you have for use with your app. 您需要提供有关与应用程序一起使用的AD FS版本的更多详细信息。 What operating system is the AD FS running on? AD FS在什么操作系统上运行?

The latest developer related guidance for AD FS is at https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/overview/ad-fs-scenarios-for-developers . 有关AD FS的最新开发人员相关指南,位于https://docs.microsoft.com/zh-cn/windows-server/identity/ad-fs/overview/ad-fs-scenarios-for-developers Please review this and see if your app can accommodate the scenarios outlined. 请查看此内容,看看您的应用程序是否可以适应上述方案。 They are geared for using OAuth2 and OpenID Connect. 它们适合使用OAuth2和OpenID Connect。 This requires AD FS to be on Windows Server 2016. 这要求AD FS必须在Windows Server 2016上。

But if you are not using AD FS on Windows Server 2016 and have AD FS on Windows Server 2012 R2 or below, then you should consider using WS-Federation instead. 但是,如果您不在Windows Server 2016上使用AD FS,而在Windows Server 2012 R2或更低版本上使用AD FS,则应考虑改用WS-Federation。 WIF modules allow you to use WS-Federation and you can use the guidance at https://docs.microsoft.com/en-us/dotnet/framework/security/wif-how-tos-index WIF模块允许您使用WS联合身份验证,并且可以使用https://docs.microsoft.com/zh-cn/dotnet/framework/security/wif-how-tos-index上的指南

There are other application stacks to also consider such as OWIN/Katana. 还应考虑其他应用程序堆栈,例如OWIN / Katana。 See links such as http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013/ . 参见http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio- 2013 / This uses WS-Federation. 这使用WS联合身份验证。

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

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