we are moving WSO2 API from 3.1 to 4.1. In 3.1 we are getting user profile all claims in X-JWT-Assertion header But 4.1 we are not getting all claims. we are seeing only default claims. can you help us how to get all claim开发者_Go百科s.?
You can follow these steps.
- Create an application in the devportal.
- When you generate consumer key and secret in the devportal for this application, it creates the service provider underneath. This service provider will be available when you logged into the carbon console.
- Click on the service provider and configure the claims under claim configuration. You can provide the required claims here as shown in the screenshot.
Update the user profile as in https://is.docs.wso2.com/en/latest/guides/identity-lifecycles/update-profile/
Use the openid scope when generating the access token.
curl -k -X POST https://localhost:9443/oauth2/token -d "grant_type=password&username=admin&password=admin&scope=openid" -H "Authorization: Basic Base64Encoded(ck:cs)"
- When the gateway generates the backend jwt, it adds the claims from the access token.
精彩评论