Since a few days, I was trying to see if there is a way to club roles with its corresponding scopes in a single claim in the token. But I didn’t find anything. Now, I’m thinking is it actually possible as I didn’t find anything on it. My present token with roles looks like this
"scope": "UPDATE DELETE READ",
"roles": [
"Asset Admin",
"Asset Manager"
],
"groups": [
"Admins",
"Managers"
]
I’m looking for something like
"roles": [
{
"role": "Asset Admin",
"scopes": [UPDATE DELETE READ]
},
{
"role": "Asset Manager",
"scopes": [READ]
},
],
"groups": [
"Admins",
"Managers"
]