@@ -26,23 +26,24 @@ resource "keycloak_realm" "realm" {
2626}
2727
2828resource "keycloak_openid_client" "openid_client" {
29- realm_id = keycloak_realm.realm.id
30- client_id = "test-client"
29+ realm_id = keycloak_realm.realm.id
30+ client_id = "test-client"
3131
32- name = "test client"
33- enabled = true
32+ name = "test client"
33+ enabled = true
3434
35- access_type = "CONFIDENTIAL"
36- valid_redirect_uris = [
37- "http://localhost:8080/openid-callback"
38- ]
35+ access_type = "CONFIDENTIAL"
36+ standard_flow_enabled = true
37+ valid_redirect_uris = [
38+ "http://localhost:8080/openid-callback"
39+ ]
3940
40- login_theme = "keycloak"
41+ login_theme = "keycloak"
4142
42- extra_config = {
43- "key1" = "value1"
44- "key2" = "value2"
45- }
43+ extra_config = {
44+ "key1" = "value1"
45+ "key2" = "value2"
46+ }
4647}
4748```
4849
@@ -60,26 +61,27 @@ ephemeral "random_password" "openid_client_secret" {
6061}
6162
6263resource "keycloak_openid_client" "openid_client" {
63- realm_id = keycloak_realm.realm.id
64- client_id = "test-client"
64+ realm_id = keycloak_realm.realm.id
65+ client_id = "test-client"
6566
66- name = "test client"
67- enabled = true
67+ name = "test client"
68+ enabled = true
6869
69- client_secret_wo = ephemeral.random_password.openid_client_secret.result
70- client_secret_wo_version = 1
70+ client_secret_wo = ephemeral.random_password.openid_client_secret.result
71+ client_secret_wo_version = 1
7172
72- access_type = "CONFIDENTIAL"
73- valid_redirect_uris = [
74- "http://localhost:8080/openid-callback"
75- ]
73+ access_type = "CONFIDENTIAL"
74+ standard_flow_enabled = true
75+ valid_redirect_uris = [
76+ "http://localhost:8080/openid-callback"
77+ ]
7678
77- login_theme = "keycloak"
79+ login_theme = "keycloak"
7880
79- extra_config = {
80- "key1" = "value1"
81- "key2" = "value2"
82- }
81+ extra_config = {
82+ "key1" = "value1"
83+ "key2" = "value2"
84+ }
8385}
8486```
8587
0 commit comments