Scopes not updating properly

Hello,

I’m updating scopes for an application via the client-grant endpoint and I see the scopes in the list returned via get:

{
“id”: “cgr_p36y3O8skmDfiuoL”,
“client_id”: “N4YnFKkRDSc1BwlVaW53bhm0JLwfCgvj”,
“audience”: “https://dev-wcouvupuga33l6rd.us.auth0.com/api/v2/”,
“scope”: [
“read:resource-servers”,
“create:resource-servers”,
“update:resource-servers”,
“delete:resource-servers”,
“read:client-grants”,
“create:client-grants”,
“update:client-grants”,
“delete:client-grants”
]
},

However, I am unable to use the associated client to create resources and grants. When I attempt to do so I get a 403. Strangely when I view the grant_id in the UI, I see no permissions set:

If I manually set those permissions in the UI, then my requests to create new resources works. Here is one where i manually set the permissions:
Checking grant: {
“audience”: “https://dev-wcouvupuga33l6rd.us.auth0.com/api/v2/”,
“client_id”: “XoP4kQJ8XXrVrD3NS5b2TxxWExM8LR8f”,
“id”: “cgr_MtZZfs8wxGTpuYSv”,
“scope”: [
“read:client_grants”,
“create:client_grants”,
“delete:client_grants”,
“update:client_grants”,
“read:resource_servers”,
“update:resource_servers”,
“delete:resource_servers”,
“create:resource_servers”
]
}

This manual one is able to create resources just fine. What could be going wrong?

well i just saw the difference. The working one is using underscores instead of dashes. Ignore this!

1 Like