Anyone know why if I make a call to /userinfo endpoint I obtain different JSON response? Specifically:
- When I make a call with
curl
from command line, like$curl -k -H "Authorization: Bearer 2bcea7cc9d7e4b63fd2257aa31116512" https://localhost:9443/oauth2/userinfo?schema=openid
I obtain as response the JSON:{"sub":"asela","name":"asela","preferred_username":"asela","given_name":"asela","family_name":"asela"}
- If I make the call with a java client (a library that implement the Authorization Code Flow), when the client make the /userinfo call I have as response a JSON like
{"sub":"asela@carbon"}
without all other claims.
The claims for the service defined in WSO2 IS are the default ones. Thanks for any help.