-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
28 lines (25 loc) · 997 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
data "auth0_tenant" "tenant" {}
resource "auth0_client" "client" {
name = var.name
description = var.description
app_type = "regular_web"
callbacks = ["${var.boundary_url}/v1/auth-methods/oidc:authenticate:callback"]
allowed_logout_urls = ["${var.boundary_url}:3000"]
jwt_configuration {
alg = "RS256"
}
}
resource "boundary_auth_method_oidc" "provider" {
name = "Auth0"
description = "OIDC auth method for Auth0"
scope_id = var.boudnary_scope_id
issuer = "https://${data.auth0_tenant.tenant.domain}/"
client_id = auth0_client.client.client_id
client_secret = auth0_client.client.client_secret
signing_algorithms = ["RS256"]
api_url_prefix = "${var.boundary_url}"
is_primary_for_scope = var.is_primary_for_scope
state = var.state
account_claim_maps = var.account_claim_maps
claims_scopes = var.claims_scopes
}