Skip to content

1.39.0 auth0_client_grant emitting 400 Bad Request when allow_all_scopes unset #1466

@mackcooper-legitscript

Description

@mackcooper-legitscript

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

resource "auth0_client_grant" "auth0_management_client" {
  client_id = auth0_client.auth0_management_client.id
  audience  = "https://${var.auth0_domain}/api/v2/"
  scopes = [
    "scope:myscope",
    ...
  ]
}
Image

I previously had this working, but had not constrained the provider version upper limit, so when it used 1.39.0 it was failing with the above. I downgraded to 1.38.0 and it worked again. I think it might have to do with this change since that was the thing that stuck out in the most recent CHANGELOG.

Expectation

It should create the client grant ezpz.

Reproduction

Given: using provider version 1.39.0
When: providing scopes and not providing allow_all_scopes to a system level API using the auth0_client_grant resource
Then: it produces a "400 Bad Request: allow_all_scopes cannot be provided when audience is a system API"

Auth0 Terraform Provider version

1.39.0

Terraform version

1.5.5

Metadata

Metadata

Assignees

Labels

🪲 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions