@osovitny/anatoly 3.20.23 → 3.20.25
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.
|
@@ -1759,15 +1759,19 @@ class MSALUtils {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
static getApi() {
|
|
1761
1761
|
let map = new Map();
|
|
1762
|
-
|
|
1763
|
-
|
|
1762
|
+
if (MSALApiConfig) {
|
|
1763
|
+
let api = MSALApiConfig;
|
|
1764
|
+
map.set(api.uri, api.scopes);
|
|
1765
|
+
}
|
|
1764
1766
|
return map;
|
|
1765
1767
|
}
|
|
1766
1768
|
static getApiScopes() {
|
|
1767
1769
|
let scopes = [];
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1770
|
+
if (MSALApiConfig) {
|
|
1771
|
+
let api = MSALApiConfig;
|
|
1772
|
+
for (const scope of api.scopes) {
|
|
1773
|
+
scopes.push(scope);
|
|
1774
|
+
}
|
|
1771
1775
|
}
|
|
1772
1776
|
return scopes;
|
|
1773
1777
|
}
|
|
@@ -10473,6 +10477,41 @@ function loggerCallback(logLevel, message, containsPii) {
|
|
|
10473
10477
|
}
|
|
10474
10478
|
}
|
|
10475
10479
|
|
|
10480
|
+
class AppService extends ApiServiceBase {
|
|
10481
|
+
constructor(http) {
|
|
10482
|
+
super(http);
|
|
10483
|
+
this.http = http;
|
|
10484
|
+
this.baseUrl = `${ApiUrl}/app`;
|
|
10485
|
+
}
|
|
10486
|
+
loadAppInitializerSettings() {
|
|
10487
|
+
//Logging
|
|
10488
|
+
let stopwatch = new Stopwatch("@osovitny/anatoly. AppService: loadAppInitializerSettings");
|
|
10489
|
+
stopwatch.start();
|
|
10490
|
+
return this.get('loadAppInitializerSettings').pipe(map$1(data => {
|
|
10491
|
+
//Logging
|
|
10492
|
+
stopwatch.stop();
|
|
10493
|
+
stopwatch.printElapsedAsMilliseconds();
|
|
10494
|
+
if (data) {
|
|
10495
|
+
let appCoreSettings = JSON.stringify(data.core);
|
|
10496
|
+
let appMSALSettings = JSON.stringify(data.msal);
|
|
10497
|
+
appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
|
|
10498
|
+
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
|
|
10499
|
+
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
10500
|
+
resetAppCoreSettings();
|
|
10501
|
+
resetMsalSettings();
|
|
10502
|
+
}
|
|
10503
|
+
}));
|
|
10504
|
+
}
|
|
10505
|
+
static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
10506
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AppService, factory: AppService.ɵfac, providedIn: 'root' }); }
|
|
10507
|
+
}
|
|
10508
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppService, [{
|
|
10509
|
+
type: Injectable,
|
|
10510
|
+
args: [{
|
|
10511
|
+
providedIn: 'root'
|
|
10512
|
+
}]
|
|
10513
|
+
}], () => [{ type: i1.HttpClient }], null); })();
|
|
10514
|
+
|
|
10476
10515
|
/*
|
|
10477
10516
|
<file>
|
|
10478
10517
|
Project:
|
|
@@ -10493,6 +10532,8 @@ function loggerCallback(logLevel, message, containsPii) {
|
|
|
10493
10532
|
*/
|
|
10494
10533
|
//Node
|
|
10495
10534
|
const MSALProviders = [
|
|
10535
|
+
//Init
|
|
10536
|
+
AppService,
|
|
10496
10537
|
MsalService,
|
|
10497
10538
|
MsalBroadcastService,
|
|
10498
10539
|
{
|
|
@@ -10502,19 +10543,18 @@ const MSALProviders = [
|
|
|
10502
10543
|
},
|
|
10503
10544
|
{
|
|
10504
10545
|
provide: MSAL_INSTANCE,
|
|
10505
|
-
//useValue: MSALInstanceFactory(),
|
|
10506
10546
|
useFactory: MSALInstanceFactory,
|
|
10507
|
-
deps: [
|
|
10547
|
+
deps: [AppService]
|
|
10508
10548
|
},
|
|
10509
10549
|
{
|
|
10510
10550
|
provide: MSAL_GUARD_CONFIG,
|
|
10511
|
-
|
|
10551
|
+
useFactory: MSALGuardConfigFactory,
|
|
10552
|
+
deps: [AppService]
|
|
10512
10553
|
},
|
|
10513
10554
|
{
|
|
10514
10555
|
provide: MSAL_INTERCEPTOR_CONFIG,
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
deps: [HttpClient]
|
|
10556
|
+
useFactory: MSALInterceptorConfigFactory,
|
|
10557
|
+
deps: [AppService]
|
|
10518
10558
|
},
|
|
10519
10559
|
//App
|
|
10520
10560
|
AuthService,
|
|
@@ -11241,41 +11281,6 @@ class AnatolyBillingModule {
|
|
|
11241
11281
|
KendoModule,
|
|
11242
11282
|
AnatolyUIModule], exports: [BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PaypalSubscribeButtonComponent, PayPalComponent, StripeDialog] }); })();
|
|
11243
11283
|
|
|
11244
|
-
class AppService extends ApiServiceBase {
|
|
11245
|
-
constructor(http) {
|
|
11246
|
-
super(http);
|
|
11247
|
-
this.http = http;
|
|
11248
|
-
this.baseUrl = `${ApiUrl}/app`;
|
|
11249
|
-
}
|
|
11250
|
-
loadAppInitializerSettings() {
|
|
11251
|
-
//Logging
|
|
11252
|
-
let stopwatch = new Stopwatch("@osovitny/anatoly. AppService: loadAppInitializerSettings");
|
|
11253
|
-
stopwatch.start();
|
|
11254
|
-
return this.get('loadAppInitializerSettings').pipe(map$1(data => {
|
|
11255
|
-
//Logging
|
|
11256
|
-
stopwatch.stop();
|
|
11257
|
-
stopwatch.printElapsedAsMilliseconds();
|
|
11258
|
-
if (data) {
|
|
11259
|
-
let appCoreSettings = JSON.stringify(data.core);
|
|
11260
|
-
let appMSALSettings = JSON.stringify(data.msal);
|
|
11261
|
-
appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
|
|
11262
|
-
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
|
|
11263
|
-
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
11264
|
-
resetAppCoreSettings();
|
|
11265
|
-
resetMsalSettings();
|
|
11266
|
-
}
|
|
11267
|
-
}));
|
|
11268
|
-
}
|
|
11269
|
-
static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
11270
|
-
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AppService, factory: AppService.ɵfac, providedIn: 'root' }); }
|
|
11271
|
-
}
|
|
11272
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppService, [{
|
|
11273
|
-
type: Injectable,
|
|
11274
|
-
args: [{
|
|
11275
|
-
providedIn: 'root'
|
|
11276
|
-
}]
|
|
11277
|
-
}], () => [{ type: i1.HttpClient }], null); })();
|
|
11278
|
-
|
|
11279
11284
|
/*
|
|
11280
11285
|
<file>
|
|
11281
11286
|
Project:
|