await readded
This commit is contained in:
parent
ab15b2db1b
commit
0c60c05f45
|
@ -9,7 +9,7 @@ export function initializeKeycloak(keycloak: KeycloakService) {
|
||||||
clientId: 'workspaceapp',
|
clientId: 'workspaceapp',
|
||||||
},
|
},
|
||||||
initOptions: {
|
initOptions: {
|
||||||
redirectUri: 'http://localhost:8100', //'d4sworkspace://redirect',
|
redirectUri: 'd4sworkspace://redirect', //'http://localhost:8100', //
|
||||||
checkLoginIframe: false
|
checkLoginIframe: false
|
||||||
},
|
},
|
||||||
shouldAddToken: (request) => false
|
shouldAddToken: (request) => false
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { KeycloakService } from 'keycloak-angular';
|
||||||
})
|
})
|
||||||
export class D4sAuthService {
|
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";
|
umaUrl : string = " https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/token";
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ export class D4sAuthService {
|
||||||
|
|
||||||
async login() {
|
async login() {
|
||||||
if (!this.isAuthorized()) {
|
if (!this.isAuthorized()) {
|
||||||
this.keycloak.login({
|
await this.keycloak.login({
|
||||||
redirectUri: this.redirectUrl
|
redirectUri: this.redirectUrl
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue