/** * * @param permissions * @param config can be: * undefined (not specified) - the configuration will be loaded from 'keycloak.json' * string - config will be loaded from a file * object - parameters from this object */ constructor(permissions, config) { this.permissions = permissions; this.keyCloak = KeyCloakService.initKeyCloak(config); this.keyCloakProtect = this.keyCloak.protect(); this.entitlementUrl = KeyCloakService.createEntitlementUrl(this.keyCloak); }