Adding scope details in token response
Problem
Scopes that include client_id in Authorization/Token request are not present in the token response.
Symptoms
Access Token request returns following in scope even though the correct scope is passed in Authorization/Token Request:
Expected Values: Â Â "scope":Â "openid 1db8220d-a74c-4d73-bdd2-6463fde57d97"
Solution
In order to get scopes available in the response, you need to add authorisation policy for needed scopes
Add the client_id into the scope accordingly:
Example:
Add it to the authorisation policy as single value attribute:
Add the Authorization policy to the application:
Test the Token Request:
Â
Â