Made keycloak partially init from env variables
also fixed theme to russian
This commit is contained in:
35
config/00-realm-config.yaml
Normal file
35
config/00-realm-config.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
realm: $(REALM_NAME)
|
||||
enabled: true
|
||||
displayName: $(REALM_DISPLAY_NAME)
|
||||
loginTheme: Blue_stripes
|
||||
attributes:
|
||||
userProfileEnabled: true
|
||||
registrationAllowed: true
|
||||
registrationEmailAsUsername: false # Set to true if you want email as username
|
||||
editUsernameAllowed: false # Prevent username changes after registration
|
||||
|
||||
internationalizationEnabled: true
|
||||
defaultLocale: ru
|
||||
supportedLocales:
|
||||
- ru
|
||||
|
||||
userProfile:
|
||||
attributes:
|
||||
- name: "username"
|
||||
displayName: ${username}
|
||||
|
||||
permissions:
|
||||
view: ["admin", "user"]
|
||||
edit: ["admin", "user"]
|
||||
|
||||
- name: "email"
|
||||
displayName: ${email}
|
||||
required:
|
||||
roles: ["user"]
|
||||
permissions:
|
||||
view: ["admin", "user"]
|
||||
edit: ["admin", "user"]
|
||||
validations:
|
||||
email: {}
|
||||
|
||||
unmanagedAttributePolicy: "ADMIN_VIEW"
|
||||
22
config/01-clients-config.yaml
Normal file
22
config/01-clients-config.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
realm: $(REALM_NAME)
|
||||
clients:
|
||||
- clientId: $(FRONTEND_CLIENT_ID)
|
||||
name: $(FRONTEND_CLIENT_NAME)
|
||||
rootUrl: $(FRONTEND_URL)
|
||||
enabled: true
|
||||
publicClient: true
|
||||
redirectUris:
|
||||
- $(FRONTEND_REDIRECT_PATH)
|
||||
webOrigins:
|
||||
- $(FRONTEND_URL)
|
||||
protocol: openid-connect
|
||||
standardFlowEnabled: true
|
||||
directAccessGrantsEnabled: true
|
||||
attributes:
|
||||
post.logout.redirect.uris: $(FRONTEND_HOME_URI)
|
||||
- clientId: $(QUANTUM_BACKEND_CLIENT_ID)
|
||||
enabled: true
|
||||
name: $(QUANTUM_BACKEND_CLIENT_NAME)
|
||||
secret: $(QUANTUM_BACKEND_CLIENT_SECRET)
|
||||
serviceAccountsEnabled: true
|
||||
publicClient: false
|
||||
10
config/02-users-config.yaml
Normal file
10
config/02-users-config.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
realm: $(REALM_NAME)
|
||||
|
||||
users:
|
||||
- username: service-account-$(QUANTUM_BACKEND_CLIENT_ID)
|
||||
enabled: true
|
||||
serviceAccountClientId: $(QUANTUM_BACKEND_CLIENT_ID)
|
||||
clientRoles:
|
||||
realm-management:
|
||||
- view-users
|
||||
- query-users
|
||||
Reference in New Issue
Block a user