You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible to read the list of scopes for Auth0 Management API using auth0_resource_server data source.
It looks like auth0_resource_server data source reuses the read logic from the sibling auth0_resource_server resource, which explicitly skips reading scopes for Auth0 Management API:
It should be possible to retrieve the list of scopes for Auth0 Management API.
Reproduction
I was trying to create a machine-to-machine client with access to Auth0 Management API. I was hoping to retrieve the list of scopes from the data source as below, but it looks like for the time being I'll have to list them explicitly and manually.
Checklist
Description
It's not possible to read the list of scopes for Auth0 Management API using
auth0_resource_server
data source.It looks like
auth0_resource_server
data source reuses the read logic from the siblingauth0_resource_server
resource, which explicitly skips reading scopes for Auth0 Management API:terraform-provider-auth0/internal/auth0/resourceserver/resource.go
Lines 191 to 200 in 1f91edb
Expectation
It should be possible to retrieve the list of scopes for Auth0 Management API.
Reproduction
I was trying to create a machine-to-machine client with access to Auth0 Management API. I was hoping to retrieve the list of scopes from the data source as below, but it looks like for the time being I'll have to list them explicitly and manually.
When I output the value of
data.auth0_resource_server.auth0_management_api
, I can see that scopes is an empty set.Auth0 Terraform Provider version
0.45.0
Terraform version
1.3.7
The text was updated successfully, but these errors were encountered: