Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing argument for "Add Permissions in the Access Token" in auth0_resource_server #257

Closed
jeroenmarchand opened this issue Jul 21, 2022 · 7 comments
Labels
📚 documentation Improvements or additions to documentation question Further information is requested resource/auth0_resource_server

Comments

@jeroenmarchand
Copy link

Describe the problem

The dashboard interface for API's shows an "Add Permissions in the Access Token" option under "RBAC Settings" that adds a permissions claim to the access_token. This argument seems to be missing from the auth0_resource_server docs. This makes it impossible to correctly configure the API with Terraform.

What was the expected behavior?

An extra argument for the "Add Permissions in the Access Token" in auth0_resource_server that can be set to true

Reproduction

Docs for resource

resource "auth0_resource_server" "default" {
  name        = "Example Resource Server (Managed by Terraform)"
  identifier  = "https://api.example.com"

  # Enable RBAC
  enforce_policies = true

  # Option for adding permission claim to access_token?
}

The resource above does enable RBAC.

Environment

  • Version of terraform-provider-auth0 used: v0..33.0
@jeroenmarchand jeroenmarchand added the 🪲 bug Something isn't working label Jul 21, 2022
@sergiught
Copy link
Contributor

Hey @jeroenmarchand, thanks for opening an issue with us!

In order to toggle the "Add Permissions in the Access Token" setting please set token_dialect to access_token_authz while making sure enforce_policies is true.

This is however referenced in the docs as well under token_dialect: https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/resource_server#token_dialect.

👋🏻

@sergiught sergiught added question Further information is requested 📚 documentation Improvements or additions to documentation and removed 🪲 bug Something isn't working labels Jul 21, 2022
@jeroenmarchand
Copy link
Author

Missed that one, sorry. Thanks for the clarification!

@ynnelson
Copy link

The documentation should be updated because this isn't clear. It's very confusing.

@sergiught
Copy link
Contributor

Hey @ynnelson 👋🏻 thanks for the feedback. If this is still confusing we'll reopen this issue and look for ways to make this more clear.

@josecsotomorales
Copy link

Also experienced this one, it's confusing to find out that property, but glad there is a way.

@sergiught
Copy link
Contributor

Hey folks, appreciate the feedback. We have a PR over at #371 to try to improve the docs. Let us know if this helps!

@sergiught
Copy link
Contributor

Hey folks, we just released https://registry.terraform.io/providers/auth0/auth0/0.39.0 with a fix for this. We'll close the issue down now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 documentation Improvements or additions to documentation question Further information is requested resource/auth0_resource_server
Projects
None yet
Development

No branches or pull requests

4 participants