test...
This commit is contained in:
parent
a4f6dd5756
commit
783ccf091a
@ -37,7 +37,14 @@ export class AppComponent implements OnInit {
|
|||||||
self.autoConnectedDone = true;
|
self.autoConnectedDone = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.userService.checkAutoConnect().finally(() => {
|
this.userService.checkAutoConnect().then(() => {
|
||||||
|
console.log(` ==>>>>> Autoconnect THEN !!!`);
|
||||||
|
self.autoConnectedDone = true;
|
||||||
|
}).catch(() => {
|
||||||
|
console.log(` ==>>>>> Autoconnect CATCH !!!`);
|
||||||
|
self.autoConnectedDone = true;
|
||||||
|
}).finally(() => {
|
||||||
|
console.log(` ==>>>>> Autoconnect FINALLY !!!`);
|
||||||
self.autoConnectedDone = true;
|
self.autoConnectedDone = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export class SsoScene implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
let self = this;
|
let self = this;
|
||||||
console.error("retreive data after SSO ng-init");
|
console.error("retreive data after SSO back");
|
||||||
const ssoData = this.route.snapshot.paramMap.get('data');
|
const ssoData = this.route.snapshot.paramMap.get('data');
|
||||||
if (ssoData == null) {
|
if (ssoData == null) {
|
||||||
this.ssoData = undefined;
|
this.ssoData = undefined;
|
||||||
|
@ -84,7 +84,10 @@ export class UserService {
|
|||||||
return new Promise<void>((resolve, reject) => {
|
return new Promise<void>((resolve, reject) => {
|
||||||
// Need to use the windows global route to prevent the log in cycle ...
|
// Need to use the windows global route to prevent the log in cycle ...
|
||||||
// And in the mlain application position, the route does not have curently root the page
|
// And in the mlain application position, the route does not have curently root the page
|
||||||
if (window.location.pathname.startsWith("/sso/")) {
|
let pathName = window.location.pathname;
|
||||||
|
console.log("start Path-name: '" + pathName + "'");
|
||||||
|
if (pathName.startsWith("/sso/") || pathName.startsWith(environment.applName + "/sso/")) {
|
||||||
|
console.log(" ==> SSo section");
|
||||||
reject();
|
reject();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user