You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ better alternative.
37
37
38
38
-`api_token` (String) Your Auth0 [management api access token](https://auth0.com/docs/security/tokens/access-tokens/management-api-access-tokens). It can also be sourced from the `AUTH0_API_TOKEN` environment variable. It can be used instead of `client_id` + `client_secret`. If both are specified, `api_token` will be used over `client_id` + `client_secret` fields.
39
39
-`audience` (String) Your Auth0 audience when using a custom domain. It can also be sourced from the `AUTH0_AUDIENCE` environment variable.
40
+
-`cli_login` (Boolean) While toggled on, the API token gets fetched from the keyring for the given domain
40
41
-`client_id` (String) Your Auth0 client ID. It can also be sourced from the `AUTH0_CLIENT_ID` environment variable.
41
42
-`client_secret` (String) Your Auth0 client secret. It can also be sourced from the `AUTH0_CLIENT_SECRET` environment variable.
42
43
-`debug` (Boolean) Enables HTTP request and response logging when TF_LOG=DEBUG is set. It can also be sourced from the `AUTH0_DEBUG` environment variable.
name: "it returns an error when it can't initialize the api client",
53
-
givenTerraformConfig: map[string]interface{}{
54
-
"domain": "example.com:path",
55
-
},
52
+
name: "it returns an error when it can't initialize the api client",
53
+
givenTerraformConfig: map[string]interface{}{},
56
54
expectedDiagnostics: diag.Diagnostics{
57
55
diag.Diagnostic{
58
56
Severity: diag.Error,
59
57
Summary: "Missing environment variables",
60
-
Detail: "Either AUTH0_API_TOKEN or AUTH0_DOMAIN:AUTH0_CLIENT_ID:AUTH0_CLIENT_SECRET must be configured. Ref: https://registry.terraform.io/providers/auth0/auth0/latest/docs",
58
+
Detail: "AUTH0_DOMAIN is required. Then, configure either AUTH0_API_TOKEN, "+
59
+
"or both AUTH0_CLIENT_ID and AUTH0_CLIENT_SECRET. Or enable CLI login with AUTH0_CLI_LOGIN=true",
0 commit comments