Skip to content

qraftlabs/webservices-adfs-actas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What does this sample show?

Shows two clients consuming a service

  • A console application, getting a token from ADFS using domain user and password and then calling a web service using that token.
  • A web application, logging users with ADFS and then calling the same web service delegating the user identity by asking ADFS a token using ActAs

This is the simplest it can get... well simpler would be to use plain HTTP for all the interactions, but this is good enough taking into account that we are talking about monsters like WCF, Ws-Trust, SAML, etc.

Let the code speaks for itself

Client

Service

WebClient

IMPORTANT: this is using bearer tokens, so you have to run the service on SSL to be safe. The sample is using http and self host, don't do this in production :)

About

Samples showing the simplest way to use WCF BasicHttpBinding getting tokens from ADFS (both sending user/password and delegating identity on a web app)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published