A resource server expects the groups payload key inside the default WSO2 Identity Server JWT payload to be name roles.
Current JWT response:
{
"at_hash": "SCqDJuV0gnNvb7r_IeI47Q",
"aud": "yfzRO7vHWHI76bN68a5ZqgczxlQa",
"c_hash": "gIKRlznsEe17AQ5GQoOfZg",
"sub": "admin",
"nbf": 1663741604,
"azp": "yfzRO7vHWHI76bN68a5ZqgczxlQa",
"amr": [
"BasicAuthenticator"
],
"iss": "https://identity.myorg.co.za/oauth2/token",
"groups": [
"Internal/admin",
"Internal/everyone",
"es:write:parties",
"Application/My Account",
"admin"
],
"exp": 1663745204,
"iat": 1663741604
}
I have tried the following:
- Adding claim mappings to the SP
- Using a custom claim dialect
- Requesting wso2.org/claims/role instead of groups on the claim config on the SP
Nothing seems to change it.
Is it possible to change the payload using configuration, or is a custom JWT generator needed.