-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move openid settings into separate profile
This allows them to be set via Spring properties not just environment variables. The motivation for this is loading secrets from the filesystem when running on kubernetes.
- Loading branch information
Showing
2 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# oidc: user logins | ||
spring.security.oauth2.client.provider.oidc.issuer-uri=${OIDC_URL} | ||
spring.security.oauth2.client.provider.oidc.user-name-attribute=preferred_username | ||
spring.security.oauth2.client.registration.oidc.client-id=${OIDC_CLIENT_ID} | ||
spring.security.oauth2.client.registration.oidc.client-secret=${OIDC_CLIENT_SECRET} | ||
spring.security.oauth2.client.registration.oidc.scope=openid | ||
|
||
# kcadmin: service account for keycloak admin REST API | ||
spring.security.oauth2.client.provider.kcadmin.issuer-uri=${OIDC_URL} | ||
spring.security.oauth2.client.registration.kcadmin.client-id=${OIDC_CLIENT_ID} | ||
spring.security.oauth2.client.registration.kcadmin.client-secret=${OIDC_CLIENT_SECRET} | ||
spring.security.oauth2.client.registration.kcadmin.authorization-grant-type=client_credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters