简体   繁体   中英

SSO using Active Directory Federation Services on my .NET (C#) Application

I have an application built in .NET (C# and ASP.NET). We offer our own register/login login, but a client that just signed up with us requested support for ADFS since that's the authentication service they use across their company. This is brand new to me.

  1. How can I add support for ADFS on my application? I'm guessing my client will provide the new users a link to click that I'll have to process for the SSO?
  2. What would my client need to do on their end? (ie add groups and assign our future users to those groups?)
  3. What .NET (or 3rd party) libraries can I use?

Thank you!

You could do this with OpenID Connect OWIN but ADFS 3.0 doesn't support this. So you need WS-Fed (WIF).

The easiest way to do this is with VS.

Create a new ASP.NET project and for "Change Authetication" select the on-premises option.

Use the On-Premises Organizational Authentication Option (ADFS) With ASP.NET in Visual Studio 2013 .

Obviously ADFS needs to be configured. You need to find out what attributes the application requires in the form of claims.

Code sample which is similar for Azure AD - Integrating a web app with Azure AD using WS-Federation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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