开发者

How to get complete user claims details using X-JWT-Assertion header in wso2 APIM 4.1?

开发者 https://www.devze.com 2022-12-07 21:58 出处:网络
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

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.

  1. Create an application in the devportal.
  2. 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.
  3. Click on the service provider and configure the claims under claim configuration. You can provide the required claims here as shown in the screenshot.

How to get complete user claims details using X-JWT-Assertion header in wso2 APIM 4.1?

  1. Update the user profile as in https://is.docs.wso2.com/en/latest/guides/identity-lifecycles/update-profile/

  2. 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)"

  1. When the gateway generates the backend jwt, it adds the claims from the access token.
0

精彩评论

暂无评论...
验证码 换一张
取 消