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

Can't remove resource_server > scopes #151

Closed
tadhglewis opened this issue May 2, 2022 · 1 comment
Closed

Can't remove resource_server > scopes #151

tadhglewis opened this issue May 2, 2022 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@tadhglewis
Copy link

Describe the problem

If you have a resource_server with scopes/permissions ie

resource "auth0_resource_server" "my_resource_server" {
	name = "Bla"
	identifier = "https://example.com"
	scopes {
		value = "create:foo"
		description = "Create foos"
	}
	scopes {
		value = "create:bar"
		description = "Create bars for bar reasons"
	}
}

And then remove all the scopes

resource "auth0_resource_server" "my_resource_server" {
	name = "Bla"
	identifier = "https://example.com"
}

It tries to update-in-place and remove all the scopes however it doesn't correctly perform the api operation. From my testing this seems to be because it excludes scopes from the body instead of sending an empty array

What was the expected behavior?

Be able to remove scopes using terraform

Reproduction

n/a

Environment

n/a

@tadhglewis tadhglewis added the 🪲 bug Something isn't working label May 2, 2022
@sergiught
Copy link
Contributor

Hey @tadhglewis, this is a duplicate of #14 and as thus I'll close this down and add the reference over there. Unfortunately it's a known issue that isn't so simple to solve at the present moment, but it's something on our mind and we'll hopefully follow up with a fix in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants