When requesting a token and id_token from Azure using the implicit grant flow using a request like
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&response_type=token%20id_token
&redirect_uri=http%3A%2F%2Flocalhost
&scope=openid%20user.read
&response_mode=fragment
&state=12345
&nonce=678910
I'm successfully getting a response back with an "access_token", and an "id_token".
From what I've read, when decoding the "id_token" I should see information about the user (like name, email, picture, etc), and the "access_token" (should not be decoded) is what should be used to use as the "Bearer" token in the "Authorization" header.
When I view the token details with https://jwt.ms the "access_token" is the one with the user details, and the "id_token" has none.
When I try to access my API with the "access_token", it doesn't allow, but if I access it with the "id_token" it does.
This seems contradictory to the documentation so I'm wondering if someone can clarify for me?