Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

auth0_connection does not accept bool values in options block #163

Closed
stefangreim opened this issue Jan 17, 2020 · 1 comment 路 Fixed by #179
Closed

auth0_connection does not accept bool values in options block #163

stefangreim opened this issue Jan 17, 2020 · 1 comment 路 Fixed by #179
Labels

Comments

@stefangreim
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.12.19,
terraform-provider-auth0 v0.4.3

Affected Resource(s)

  • auth0_connection

Terraform Configuration Files

resource "auth0_connection" "test" {
  name = "test"
  strategy = "auth0"

  options {
//    mfa {
//      active = true
//      return_enroll_settings = true
//    }

    password_policy = "excellent"
    strategy_version = 2
    brute_force_protection = true

//    configuration {}
    enabled_database_customization = false
    import_mode = false

    password_no_personal_info {
      enable = false
    }
    password_dictionary {
      enable = false
      dictionary = []
    }
    password_history {
      enable = false
      size = 5
    }
    password_complexity_options {
      min_length = 1
    }
    disable_signup = true
  }
  is_domain_connection = false
  enabled_clients = [auth0_client.backend.id, auth0_client.frontend_driver.id]
}

Debug Output

Not that long, therefore no gist. :)

auth0_connection.user-pass-auth: Creating...

Error: 400 Bad Request: Payload validation error: 'Expected type boolean but found type null' on property options.password_no_personal_info.enable.

  on auth0.tf line 99, in resource "auth0_connection" "user-pass-auth":
  99: resource "auth0_connection" "user-pass-auth" {

Expected Behavior

Provider/API should accept boolean values.

Actual Behavior

Terraform throws the error above for boolean values in the options block. The message 'Expected type boolean but found type null' sounds like Terraform doesn't get the value correctly. A null is read instead of a false.

Steps to Reproduce

  1. Use the HCL code above and insert valid values for client_id and audience. For scope only a empty list.
  2. terraform apply

Important Factoids

None

References

Seems to be related to Issue 159

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity.
Stale issues will be closed after 5 days if no action is taken. If you
think this issue should not be closed, remove the stale label.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant