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

auth0_connection not updating the enabled clients #96

Closed
georg-ikegps opened this issue Mar 27, 2022 · 1 comment
Closed

auth0_connection not updating the enabled clients #96

georg-ikegps opened this issue Mar 27, 2022 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@georg-ikegps
Copy link

georg-ikegps commented Mar 27, 2022

Describe the problem

I would like to disable all clients for a given connection:

resource "auth0_connection" "google_oauth2" {
  name     = "google-oauth2"
  strategy = "google-oauth2"
  enabled_clients = []

  options {
    disable_signup = true
  }
}

After applying the plan all clients are still enabled in the web UI.

What was the expected behavior?

All clients are disabled in the web UI.
Instead there are no changes in the UI.
Running the plan again will propose the same changes as before.

Reproduction

provider "auth0" {
  domain        = var.auth0_domain
  client_id     = var.auth0_client_id.value
  client_secret = var.auth0_client_secret.value
  debug         = false
}

resource "auth0_connection" "google_oauth2" {
  name     = "google-oauth2"
  strategy = "google-oauth2"
  enabled_clients = []

  options {
    disable_signup = true
  }
}

Environment

n/a

@georg-ikegps georg-ikegps added the 🪲 bug Something isn't working label Mar 27, 2022
@sergiught
Copy link
Contributor

Hey @georg-ikegps thanks for opening this issue. The provider uses auth0/go-auth0 under the hood and unfortunately we can't set empty values on any fields currently. It's an issue we'll fix soon and is already tracked through #14. I'll close this down and add it as another reference to that issue as this is a duplicate of that.

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