Scenario: client application requests ID token only
- The user clicks Sign in.
-
The client application redirects the user agent to the authorization endpoint of the identity provider.
- Response type is set to
id_token, indicating the Implicit flow and that we’re requesting an ID token only. - A nonce value is set to mitigate replay attacks.
Parameters are described below. - Response type is set to
- The user enters their credentials.
- An identity provider authenticates the user and asks for consent to access their resources on behalf of the Relying Party.
-
With consent given, the authentication server sends an authorization response message from its authorization endpoint. This redirects the user-agent back to the Relying Party using the redirection URI provided earlier. This URI includes an ID token in a URI fragment (host address and
id_tokenseparated by hash (#)). This ID token contains the standard claims, including some claims normally found in the profile and email scopes. -
The user agent needs to parse the ID token encoded values that were returned in the URI fragment, and then pass them to the client’s processing logic.
- The application will likely contain a script that extracts the ID token from the full redirect URI.
- It’s then up to the client application to validate the ID token before accessing and trusting the claims it contains.
Parameters
Scenario: client application requests both ID token and access token
This scenario is almost the same as the ID token only scenario, except here we set response type totoken id_token.
Parameters
The client application can validate the ID token, and use the access token and token type to access the tenant’s web services.