-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
70 lines (58 loc) · 1.64 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
terraform {
required_providers {
forgerock = {
source = "michelin/forgerock"
}
}
}
provider "forgerock" {
username = var.username
password = var.password
forgerock_api = var.forgerock_api
realm_path = var.realm_path
mail_sender = {
send_client_secret_mail = true
smtp_server = "smtp.example.com"
smtp_port = 587
sender_email = "[email protected]"
sender_username = "username"
sender_password = "password"
}
}
resource "forgerock_oauth2Client" "myPublicClient" {
name = "my_public_client"
admin_mail = "[email protected]"
advanced_oauth2_client_config = {
token_endpoint_auth_method = "none"
grant_types = ["authorization_code", "refresh_token"]
is_consent_implied = true
}
core_open_id_client_config = {
post_logout_redirect_uri = ["http://localhost:4200"]
}
core_oauth2_client_config = {
status = "Active"
scopes = ["profile", "email", "openid"]
redirection_uris = ["http://localhost:4200", "https://anotherurl.com"]
client_type = "Public"
}
}
resource "forgerock_oauth2Client" "myPrivateClient" {
name = "my_private_client"
admin_mail = "[email protected]"
user_password_version = 0
advanced_oauth2_client_config = {
token_endpoint_auth_method = "none"
grant_types = ["client_credentials"]
is_consent_implied = true
}
core_open_id_client_config = {
post_logout_redirect_uri = [""]
}
core_oauth2_client_config = {
status = "Active"
scopes = ["profile", "email", "openid"]
redirection_uris = [""]
client_type = "Confidential"
}
}