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

Can't create a ADFS connection #457

Closed
HebosHebbe opened this issue Oct 13, 2021 · 4 comments · Fixed by #467
Closed

Can't create a ADFS connection #457

HebosHebbe opened this issue Oct 13, 2021 · 4 comments · Fixed by #467
Labels

Comments

@HebosHebbe
Copy link

Description

Unable to create a ADFS connection, getting the error:
Error: 400 Bad Request: missing federation metadata url

This is the same error I get from Auth0 management API when omitting the option adfs_server. However, the terraform configuration clearly contains the option (see below).

Terraform Version

Terraform v0.13.7
+ provider.auth0 v0.21.0

Affected Resource(s)

  • auth0_connection

Terraform Configuration Files

resource "auth0_connection" "connection" {
  name = var.name
  strategy = "adfs"
  enabled_clients = var.enabled_clients
  display_name = var.display_name

  options {
    adfs_server = var.adfs_server
  }
}

Expected Behavior

Expected to be able to create a new ADFS connection

Actual Behavior

Connection not created

Steps to Reproduce

  1. terraform apply

Debug Output

Terraform will perform the following actions:

  # auth0_connection.connection will be created
  + resource "auth0_connection" "connection" {
      + enabled_clients      = (known after apply)
      + id                   = (known after apply)
      + is_domain_connection = (known after apply)
      + name                 = "testadfs"
      + realms               = (known after apply)
      + strategy             = "adfs"
      + strategy_version     = (known after apply)

      + options {
          + adfs_server              = "CENCORED_SECRET_VALID_METADATA_URL"
          + non_persistent_attrs     = (known after apply)
          + password_policy          = (known after apply)
          + set_user_root_attributes = (known after apply)
          + strategy_version         = (known after apply)

          + password_history {
              + enable = (known after apply)
              + size   = (known after apply)
            }
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

auth0_connection.connection: Creating...

Error: 400 Bad Request: missing federation metadata url

  on main.tf line 1, in resource "auth0_connection" "connection":
   1: resource "auth0_connection" "connection" {

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
@alekc
Copy link

alekc commented Oct 13, 2021

If you create it on the Auth0 ui, does it work?

@HebosHebbe
Copy link
Author

Yes, it works with the Management API as well.

@alexkappa
Copy link
Owner

Hi @HebosHebbe, I believe this is a bug. Thanks for reporting

@alexkappa
Copy link
Owner

@HebosHebbe the latest release should resolve this bug. Please reopen this issue otherwise.

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.

3 participants