asp.net c# 中的 ADFS

ADFS in asp.net c#

我是 ADFS 的新手,正在学习如何在我已经开发的 asp.net c# 应用程序中实现它。

With the help of this link 我已经在我的应用程序中添加了代码,但现在出现错误:

Unable to load DLL 'ifsutils.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

有人可以帮忙吗?

此外,我正在使用 Server2012R2 和 framework 4.0,我是否需要按照 link.

中的步骤 4 进行操作

提前致谢

link 适用于极旧版本的 AD FS,不是当前指南。

您需要提供有关与您的应用程序一起使用的 AD FS 版本的更多详细信息。 AD FS 运行 在什么操作系统上?

AD FS 的最新开发人员相关指南位于 https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/overview/ad-fs-scenarios-for-developers。请查看此内容,看看您的应用是否可以适应所列的场景。它们适用于使用 OAuth2 和 OpenID Connect。这需要 AD FS 在 Windows Server 2016 上。

但是,如果您没有在 Windows Server 2016 上使用 AD FS 而在 Windows Server 2012 R2 或更低版本上使用 AD FS,那么您应该考虑改用 WS-Federation。 WIF 模块允许您使用 WS-Federation,您可以使用 https://docs.microsoft.com/en-us/dotnet/framework/security/wif-how-tos-index

上的指南

还有其他应用程序堆栈也需要考虑,例如 OWIN/Katana。请参阅 link 等 http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013/ 。这使用 WS-Federation。