With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
resource "auth0_rule" "my_rule" {
name = "empty-rule"
script = <<EOF
function (user, context, callback) {
callback(null, user, context);
}
EOF
enabled = true
}
resource "auth0_rule_config" "my_rule_config" {
key = "foo"
value = "bar"
}
function (user, context, callback) {
callback(null, user, context);
}
EOF
enabled = true
}
resource "auth0_rule_config" "my_rule_config" {
key = "foo"
value = "bar"
}
key
(String) Key for a rules configuration variable.value
(String, Sensitive) Value for a rules configuration variable.id
(String) The ID of this resource.Import is supported using the following syntax:
# Existing rule configs can be imported using their key name.
#
# Example:
terraform import auth0_rule_config.my_rule_config "foo"