intelica-library-ui 0.1.220 → 0.1.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,10 +61,11 @@ class ConfigService {
|
|
|
61
61
|
userDataSubject = new BehaviorSubject("");
|
|
62
62
|
userData$ = this.userDataSubject.asObservable();
|
|
63
63
|
async init() {
|
|
64
|
-
const environment = `${window.location.protocol}//${window.location.hostname}${window.location.hostname === "localhost" ? `:${window.location.port}` : ""}/environment/environment.json`;
|
|
64
|
+
const environment = `${window.location.protocol}//${window.location.hostname}${window.location.hostname === "localhost" ? `:${window.location.port}` : ""}/environment/environment.json?v0`;
|
|
65
65
|
if (getCookie("data") != undefined)
|
|
66
66
|
this.SessionInformation = JSON.parse(getCookie("data") ?? "");
|
|
67
|
-
this.environment =
|
|
67
|
+
this.environment =
|
|
68
|
+
await this.Http.get(environment).toPromise();
|
|
68
69
|
}
|
|
69
70
|
SetSessionInformation() {
|
|
70
71
|
this.SessionInformation = JSON.parse(getCookie("data") ?? "");
|
|
@@ -582,7 +583,7 @@ class RouteGuardService {
|
|
|
582
583
|
ValidateToken(pageRoot) {
|
|
583
584
|
const cookieAttributesGeneral = GetCookieAttributes(this.ConfigService.environment?.environment ?? "");
|
|
584
585
|
const authenticationLocation = `${this.ConfigService.environment?.authenticationWeb}?callback=${window.location.href}&clientID=${this.ConfigService.environment?.clientID}`;
|
|
585
|
-
const path = `${this.ConfigService.environment?.authenticationPath ?? ""}/Authenticate/ignore/
|
|
586
|
+
const path = `${this.ConfigService.environment?.authenticationPath ?? ""}/Authenticate/ignore/ValidateToken`;
|
|
586
587
|
const authenticationClientID = this.ConfigService.environment?.clientID ?? "";
|
|
587
588
|
const validateTokenQuery = {
|
|
588
589
|
token: getCookie("token") ?? "",
|