This .NET (C#) sample demonstrates how to fetch tokens from IssuedToken* ADFS active endpoints.
Broadly, we have to perform the following steps (in sequence) on the client application:
- Using "UserNameWSTrustBinding", client gets token from "usernamemixed" ADFS endpoint.
- Using "IssuedTokenWSTrustBinding", client presents the above token to "issuedtokenmixedsymmetricbasic256" ADFS endpoint, and gets a token in response.
- Using "WS2007FederationHttpBinding", the token is presented during the WCF service operation call.
Steps to make the sample running:
- Download the whole sample
- Service application Issuedtokenmixedasymmetricbasic256WcfService1 can be hosted on IIS
- Ensure ADFS is provisoned as per the screenshots in blog
- Configure your endpoints in client application configuration file of ActiveADFSClientApp
- Run the app now