Skip to content

Commit

Permalink
make keycloak serverUrl and realm config/env's optional
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Jan 12, 2024
1 parent e6ca7d8 commit 744a37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/components/keycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module.exports = new Keycloak({}, {
'confidential-port': 0,
clientId: config.has('keycloak.clientId') ? config.get('keycloak.clientId') : undefined,
'policy-enforcer': {},
realm: config.get('keycloak.realm'),
realm: config.has('keycloak.realm') ? config.get('keycloak.realm') : undefined,
realmPublicKey: config.has('keycloak.publicKey') ? config.get('keycloak.publicKey') : undefined,
secret: config.has('keycloak.clientSecret') ? config.get('keycloak.clientSecret') : undefined,
serverUrl: config.get('keycloak.serverUrl'),
serverUrl: config.has('keycloak.serverUrl') ? config.get('keycloak.serverUrl') : undefined,
'ssl-required': 'external',
'use-resource-role-mappings': false,
'verify-token-audience': true
Expand Down

0 comments on commit 744a37d

Please sign in to comment.