I am building a prototype with the following context.
- Two client applications (MVC & Mobile)
- IdentityServer3 as a relying party
- ADFS 3.0 as a identity provider
- IdentityServer3.WsFederation plugin to provide SAML support
The MVC side is complete, but I am not sure how to approach the mobile side.
My previous attempt used a Web API and ADFS' "adfs/services/trust/13/usernamemixed" endpoint. This allowed the mobile device to send credentials to the API which then authenticated the user using ADFS's endpoint. Then it returned a JWT token to the mobile app.
We must receive SAML tokens from the Idp (could be ADFS or a different Idp), but our apps are agnostic about the type of token.
I have two question.
- IdentityServer3 doesn't support ws trust using the above endpoint (as far as I know), so what is the correct approach for this scenario for a mobile device login?
- Is the WsFederation plugin needed since IdentityServer3 might handle converting the SAML token to JWT for the client apps.