AD FS and forms Authentication

2019-07-30 13:39发布

问题:

We have an Asp.Net website project which uses Forms Authentication. We have been asked to connect to some proxy servers using AD FS to authenticate by one of our clients. I am very new to AD FS and I have a questions.

Authenticate using AD FS is possible only with claims-enabled ASP.NET application or is there a work around to use this with Forms Authentication?

回答1:

This tutorial shows how you can authenticate using ADFS with only a few dozen lines of code.

http://www.wiktorzychla.com/2014/11/simplest-saml11-federated-authentication.html

Note the exact moment the SAML token is validated and accepted. In my tutorial I issue the claims identity but you can easily put your forms identity there.

This is because consuming claim/saml token is completely independent of how you later establish a local session.