I'm trying out OAuth/OpenID with WSO2 Identity Server 5.1.0, but I'm having problems with returning the claims I need. I'm not sure if I'm misunderstanding how this should work...
I'm using the default resident identity provider.
The service provider has the claims configured like this:
This only other configuration for this SP is inbound authentication with OAuth2.
When I get an OAuth token for this service using the openid scope, the JWT received only has the subject field (email address in this case). I was expecting to also receive the requested claims, i.e., roles.
Is this not the way to do it? If not, how can I achieve this? (note: was hoping to keep this to OAuth/OpenID only).
Any help is much appreciated, as I'm quite stumped with this.