auth0 / terraform-provider-auth0

The Auth0 Terraform Provider is the official plugin for managing Auth0 tenant configuration through the Terraform tool.
https://registry.terraform.io/providers/auth0/auth0/latest/docs
Mozilla Public License 2.0
157 stars 73 forks source link

Unsupported Connection Strategy: oauth1 #923

Open alanc10n opened 4 months ago

alanc10n commented 4 months ago

Checklist

Description

In updating from 0.50.2 to 1.1.2, I'm getting an error on a connection as follows:

Error: Unsupported Connection Strategy
│ 
│   with auth0_connection.garmin-connect,
│   on connections.tf line 218, in resource "auth0_connection" "garmin-connect":
│  218:   strategy = "oauth1"
│ 
│ Raise an issue at https://github.com/auth0/terraform-provider-auth0/issues/new in order to have the following connection strategy supported: "oauth1"

This connection was working fine until the provider update; the resource definition is this:

 resource "auth0_connection" "garmin-connect" {
  name     = "garmin-connect"
  strategy = "oauth1"
}

I attempted to remove the connection from state and re-import, which also yields an error about unsupported strategy.

Expectation

oauth1 is accepted as a strategy, since it's been in the past and I see no documentation about it being removed.

Reproduction

Create the above resource definition

Auth0 Terraform Provider version

1.1.2

Terraform version

1.7.3

alanc10n commented 4 months ago

It's perhaps worth noting that removing the resource from state and trying to create a data source for it instead has the same issue. I took a quick look at the source and I see where strategies are defined, and oauth1 is part of the list, so it's not clear at a glance what's going wrong.