I'm using the authorization flow supported in ADFS 3.0 in the following way,
- Browser connects to MyService
- MyService redirects browser to ADFS for OAuth
- Browser connects to ADFS for OAuth Authorization code
- ADFS authenticates the users through the browser
- ADFS redirects the browser back to MyService along with authorization code
- Browser connects to MyService and passes the authorization token
- MyService connects to ADFS and gets the access token from the authorization token
However, the access token is missing the user identity and MyService is unable to identify the user.
The access token has the following JWT information.
{ "aud": "urn:relying:party:trust:identifier",
"iss": "http://ms.cloud.com/adfs/services/trust",
"iat": 1452875046,
"exp": 1452878646,
"auth_time": "2016-01-15T15:35:20.248Z",
"authmethod": "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport",
"ver": "1.0",
"appid": "my-app" }
Can someone inform me as to how can MyService identify the user once it gets the access token from ADFS?