ADFS 3 with OAuth2 and Katana

Jun 30, 2014 at 5:16 AM
Hi guys,

I am trying to set up a WebAPI solution to be able to use multiple OAuth2 authorization servers to secure access.

One of the OAuth 2 servers I need to support is ADFS 3, using OAuth 2.

The flow I would like is that the user hits the website and gets a 401. The login screen allows the user to select one of the configured providers (different organizations) and gets redirected to their ADFS login screen.

So far I have managed to get it working using WS-Federation, but this only seems to allow me to use one ADFS provider.

The source is at:
https://github.com/darbio/Phoenix.Net/tree/feature/ADFS/Src/Phoenix.API

Any pointers as to how I get ADFS to work as an OAuth 2 authorization server?
Jun 30, 2014 at 6:36 AM
If I hit the following endpoint, I get a login screen:

https://adfs.dev.local/adfs/oauth2/authorize?client_id=e95d8732-a24d-45fb-bc92-31ad86f0ebac&response_type=code&redirect_uri=https://localhost:44304/api/v1/external_login&resource=https://localhost:44304

So I guess that means my Endpoints are set up correctly?

How do I link this into my WebAPI?