@osovitny/anatoly 3.21.30 → 3.21.33

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.
@@ -1702,14 +1702,6 @@ class MSALUtils {
1702
1702
  static initialNavigation() {
1703
1703
  return !BrowserUtils.isInIframe() && !BrowserUtils.isInPopup() ? 'enabledNonBlocking' : 'disabled';
1704
1704
  }
1705
- static getApi() {
1706
- let map = new Map();
1707
- if (MSALApiConfig) {
1708
- let api = MSALApiConfig;
1709
- map.set(api.uri, api.scopes);
1710
- }
1711
- return map;
1712
- }
1713
1705
  static getApiScopes() {
1714
1706
  let scopes = [];
1715
1707
  if (MSALApiConfig) {
@@ -2587,7 +2579,8 @@ class AnatolyHttpInterceptor {
2587
2579
  }
2588
2580
  }
2589
2581
  //4. getCurrentContext
2590
- if (url.indexOf('getCurrentContext') > -1) {
2582
+ if (lowerCaseUrl.indexOf('getcurrentcontext') > -1) {
2583
+ // Only checks MSAL's current active account. It does not start login or token acquisition by itself; it only decides whether this request should call getAccessToken() at all.
2591
2584
  authorizationTokenRequired = this.authService.isUserAuthenticated();
2592
2585
  }
2593
2586
  // Change Url if need it -------------------------------------------->
@@ -9165,13 +9158,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
9165
9158
  Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
9166
9159
  </file>
9167
9160
  */
9168
- function MSALInterceptorConfigFactory() {
9169
- let protectedResourceMap = MSALUtils.getApi();
9170
- return {
9171
- interactionType: InteractionType.Redirect,
9172
- protectedResourceMap
9173
- };
9174
- }
9175
9161
  /*
9176
9162
  https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/configuration.md
9177
9163
  The MsalGuard also allows you to dynamically change the authRequest at runtime. This allow you to pick a different