diff --git a/app/src/components/keycloak.js b/app/src/components/keycloak.js index 76e038a..d4b5283 100644 --- a/app/src/components/keycloak.js +++ b/app/src/components/keycloak.js @@ -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