This module allow you to create and manage clients, resource servers(api), client grants, connections, email providers and rules and roles, tenants as part of a Terraform deployment.
[Auth0 multi resources create] (https://github.com/dasmeta/terraform-auth0-modules/tree/main/examples)
If you need the credentials from one of the managed clients
for one of your actions
you can refer to them like this:
actions = {
"test" = {
code = file("${path.module}/actions-code/test.js")
name = "test"
deploy = false
client_secrets = [
{
name = "CLIENT_ID"
client = "Frontend (Test)"
output = "client_id"
}
]
}
}
...
clients = {
"Frontend (Test)" = {
name = "Frontend (Test)"
app_type = "non_interactive"
},
...
name
is the name of the secret which will be created.
client
is the name of the client which is already managed by this module.
output
is the name of the output field of the client. The value of the secret is read from this output.
Name | Version |
---|---|
terraform | ~> 1.5.6 |
auth0 | ~> 1.0.0 |
Name | Version |
---|---|
auth0 | ~> 1.0.0 |
Name | Source | Version |
---|---|---|
action | ./modules/auth0-action | n/a |
auth0-auth-db | ./modules/auth0-auth-db | n/a |
auth0-email | ./modules/auth0-email | n/a |
auth0-goa | ./modules/auth0-auth-google | n/a |
auth0-guardian | ./modules/auth0-guardian | n/a |
auth0-org | ./modules/auth0-org | n/a |
auth0-tenant | ./modules/auth0-tenant | n/a |
auth0_api | ./modules/auth0-api | n/a |
auth0_client | ./modules/auth0-client | n/a |
auth0_role | ./modules/auth0-role | n/a |
auth0_users | ./modules/auth0-user/ | n/a |
Name | Type |
---|---|
auth0_client_grant.my_client_grant | resource |
auth0_prompt.my_prompt | resource |
auth0_trigger_actions.trigger_binding | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
actions | Actions are secure, tenant-specific, versioned functions written in Node.js that execute at certain points during the Auth0 runtime. Actions are used to customize and extend Auth0's capabilities with custom logic. | list(object({ |
[] |
no |
apis | With this resource, you can set up APIs that can be consumed from your authorized applications. | list(object({ |
[] |
no |
client-id | Auth0 client id | string |
n/a | yes |
client-secret | Auth0 client secret | string |
n/a | yes |
client_grants | Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without exposing credentials. | any |
[] |
no |
clients | With this resource, you can set up applications that use Auth0 for authentication and configure allowed callback URLs and secrets for these applications. | list(object({ |
[] |
no |
db_connections | With Auth0, you can define sources of users, otherwise known as connections, which may include identity providers database authentication methods. | list(object({ |
[] |
no |
domain | Auth0 domain | string |
n/a | yes |
emails | With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. | list(object({ |
[] |
no |
With Auth0, you can define sources of users, otherwise known as connections, which may include identity provider Google authentication methods. | any |
[] |
no | |
mfa | Multi-Factor Authentication works by requiring additional factors during the login process to prevent unauthorized access. | list(object({ |
[] |
no |
orgs | The Organizations feature represents a broad update to the Auth0 platform that allows our business-to-business (B2B) customers to better manage their partners and customer | list(object({ |
[] |
no |
prompts | With this resource, you can manage your Auth0 prompts, including choosing the login experience version. | any |
[] |
no |
roles | With this resource, you can create and manage collections of permissions that can be assigned to users, which are otherwise known as roles. | list(any) |
[ |
no |
tenant | With this resource, you can manage Auth0 tenants | list(object({ |
[] |
no |
users | n/a | list(object({ |
[] |
no |
Name | Description |
---|---|
client_credentials | Client credentials for each client created. |