I can pull our Roles from Sql Server and stored them in the token via a rule, see below:
{
"https://somethinghere:auth0:com/roles": [
"Site Administrator"
],
"permissions": []
}
However, I want this stored in the permissions array (note, our Roles are really just your permissions) like this:
{
"permissions": [
"Site Administrator"
]
}
But I can’t figure out how to write to the permissions array in a rule?
I need to be able use this in C# controllers with the [Authorize] attribute like this
[Authorize(Roles ="Site Administrator")]