Skip to content

Commit 3d38312

Browse files
committed
Support confidential with client secret
1 parent cac02ed commit 3d38312

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/resources/application.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ keycloak:
1111
ssl-required: external
1212
# prevents the application from sending credentials to the Keycloak server (false is the default value)
1313
# set it to true whenever we use public clients instead of confidential
14-
public-client: true
14+
# when access type in keycloak is `confidential` must set `public-client: false`
15+
public-client: false
16+
# client secret: client id and secret
17+
# https://www.keycloak.org/docs/latest/securing_apps/index.html#_client_authentication_adapter
18+
credentials:
19+
secret: "1804cd92-b659-4d0e-9bac-c25aac2c9981"
1520
# the attribute with which to populate the UserPrincipal name
1621
principal-attribute: preferred_username
22+
23+
24+

0 commit comments

Comments
 (0)