forked from dasmeta/terraform-auth0-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth0-api.tf
20 lines (18 loc) · 930 Bytes
/
auth0-api.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
locals {
default_api = {
token_dialect = null
}
}
module "auth0_api" {
source = "./modules/auth0-api"
for_each = { for v in var.apis : v.name => v }
name = each.value.name
scopes = each.value.scopes
identifier = each.value.identifier
enforce_policies = each.value.enforce_policies
signing_alg = each.value.signing_alg
skip_consent_for_verifiable_first_party_clients = each.value.skip_consent_for_verifiable_first_party_clients
token_lifetime = each.value.token_lifetime
token_lifetime_for_web = each.value.token_lifetime_for_web
token_dialect = lookup(each.value, "token_dialect", local.default_api.token_dialect)
}