diff --git a/src/app/_helper/keycloak-init.factory.ts b/src/app/_helper/keycloak-init.factory.ts index 8bc2f23..24c73ff 100644 --- a/src/app/_helper/keycloak-init.factory.ts +++ b/src/app/_helper/keycloak-init.factory.ts @@ -9,7 +9,7 @@ export function initializeKeycloak(keycloak: KeycloakService) { clientId: 'workspaceapp', }, initOptions: { - redirectUri: 'http://localhost:8100', //'d4sworkspace://redirect', + redirectUri: 'd4sworkspace://redirect', //'http://localhost:8100', // checkLoginIframe: false }, shouldAddToken: (request) => false diff --git a/src/app/d4sauth.service.ts b/src/app/d4sauth.service.ts index 49509b7..31a46a5 100644 --- a/src/app/d4sauth.service.ts +++ b/src/app/d4sauth.service.ts @@ -8,7 +8,7 @@ import { KeycloakService } from 'keycloak-angular'; }) export class D4sAuthService { - redirectUrl: string = 'http://localhost:8100/'; //'d4sworkspace://org.gcube.workspace/'; + redirectUrl: string = 'd4sworkspace://org.gcube.workspace/'; //'http://localhost:8100/'; // umaUrl : string = " https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/token"; @@ -23,7 +23,7 @@ export class D4sAuthService { async login() { if (!this.isAuthorized()) { - this.keycloak.login({ + await this.keycloak.login({ redirectUri: this.redirectUrl }); }