I am working on WSO2IS, and had been able to get a self contained access token out of WSO2IS by Oauth2 "password" grant type by following this post
I am also able to verify the signature of the token in application (see this post)
yet there is still one final step that I can not pass
here is a sample of access token I have got out of WSO2IS
{iss=https://localhost:9443/oauth2/token, [email protected], aud=[J3lbMMMJFwXB6neKzXv030S9lfga], exp=1488710173, iat=1488706573, azp=J3lbMMMJFwXB6neKzXv030S9lfga}
you can see that value of "sub" is a username, which correspond to the claim " http://wso2.org/claims/username".
I want to change the configure in WSO2IS so that the "sub" correspond to claim " http://wso2.org/claims/userid"
I changed the "Claim Configuration" under "Service Providers"; I also changed the "sub" in the "http://wso2.org/oidc/claim" under "Claims". but can not get any success.
are there anything I have missed?
please advise
thanks
I finally have this problem solved by coding instead of configuring.
I had implemented an extension for a Self-Contained Access Token (JWT in Oauth2) Generator by followed this post . I build the jar, and upload the jar under /repository/components/lib/
I just checkout this repo , and made the following changes
the imports