@masterteam/gateway-auth 0.0.20 → 0.0.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/gateway-auth",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/gateway-auth",
6
6
  "linkDirectory": true,
@@ -15,8 +15,8 @@
15
15
  "@ngxs/store": "^20.1.0",
16
16
  "rxjs": "^7.8.2",
17
17
  "@masterteam/brand-display": "^0.0.11",
18
- "@masterteam/components": "^0.0.169",
19
- "@masterteam/icons": "^0.0.15"
18
+ "@masterteam/icons": "^0.0.15",
19
+ "@masterteam/components": "^0.0.169"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -378,6 +378,7 @@ interface GatewayAuthOptions {
378
378
  applicationCode?: GatewayApplicationCodeOption;
379
379
  autoLaunchApplicationOnLogin?: boolean;
380
380
  resolveApplicationCodeForRequest?: (request: HttpRequest<unknown>) => string | null | undefined;
381
+ getApplicationLaunchReturnUrl?: (applicationCode: string) => string | null | undefined;
381
382
  afterLogin?: (session: GatewayLoginResponse, ctx: StateContext<AuthStateModel>) => GatewayAuthHookResult;
382
383
  beforeLocalLogout?: (ctx: StateContext<AuthStateModel>) => GatewayAuthHookResult;
383
384
  }
@@ -535,6 +536,7 @@ declare class GatewayAuthState {
535
536
  clearAppSession(ctx: StateContext<AuthStateModel>, action: ClearAppSession): void;
536
537
  clearAllAppSessions(ctx: StateContext<AuthStateModel>): void;
537
538
  private removeLoadingFlag;
539
+ private resolveLaunchReturnUrl;
538
540
  private isRateLimitActive;
539
541
  private handleRateLimit;
540
542
  private handleLoginResponse;
@@ -608,6 +610,36 @@ declare class GatewayAuthFacade {
608
610
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<GatewayAuthFacade>;
609
611
  }
610
612
 
613
+ declare const correlationIdInterceptor: HttpInterceptorFn;
614
+
615
+ interface IdempotencyInterceptorOptions {
616
+ excludedPaths?: string[];
617
+ methods?: string[];
618
+ headerName?: string;
619
+ }
620
+ declare function createIdempotencyInterceptor(options?: IdempotencyInterceptorOptions): HttpInterceptorFn;
621
+ declare const idempotencyInterceptor: HttpInterceptorFn;
622
+
623
+ interface LanguageInterceptorOptions {
624
+ getLanguage: () => string | null | undefined;
625
+ headerName?: string;
626
+ }
627
+ declare function createLanguageInterceptor(options: LanguageInterceptorOptions): HttpInterceptorFn;
628
+
629
+ interface MessageInterceptorOptions {
630
+ silentEndpoints?: string[];
631
+ mutatingMethods?: string[];
632
+ noMessageHeader?: string;
633
+ }
634
+ declare function createMessageInterceptor(options?: MessageInterceptorOptions): HttpInterceptorFn;
635
+ declare const messageInterceptor: HttpInterceptorFn;
636
+
637
+ interface CacheSessionInterceptorOptions {
638
+ onCacheSession: (cacheSession: string) => void;
639
+ field?: string;
640
+ }
641
+ declare function createCacheSessionInterceptor(options: CacheSessionInterceptorOptions): HttpInterceptorFn;
642
+
611
643
  interface GatewayLoginLanguageViewOption extends GatewayLoginLanguageOption {
612
644
  id: string;
613
645
  }
@@ -720,5 +752,5 @@ declare class GatewaySsoButtons implements OnInit {
720
752
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GatewaySsoButtons, "mt-gateway-sso-buttons", never, { "dividerLabel": { "alias": "dividerLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
721
753
  }
722
754
 
723
- export { AUTH_STATE_DEFAULTS, ClearAllAppSessions, ClearAppSession, ClearError, ClearPendingMfa, ClearRateLimit, ExchangeSsoCode, GATEWAY_AUTH_ACCESS_TOKEN_REFRESH_SKEW_MS, GATEWAY_AUTH_DEVICE_TOKEN, GATEWAY_AUTH_DEVICE_TOKEN_STORAGE_KEY, GATEWAY_AUTH_ENDPOINTS, GATEWAY_AUTH_NGSW_BYPASS_PARAM, GATEWAY_AUTH_OPTIONS, GATEWAY_AUTH_RETRY_CONTEXT, GATEWAY_RATE_LIMIT_ERROR_CODE, GATEWAY_RATE_LIMIT_STATUS, GatewayAuthFacade, GatewayAuthState, GatewayLoginPage, GatewayMfa, GatewaySsoButtons, GatewaySsoCallback, GatewaySsoSession, LaunchApplication, LoadApplications, LoadSsoProviders, Login, LoginFailure, LoginSuccess, Logout, ResendMfa, SetAppSession, SetApplications, SetRateLimit, StartSso, UpdateAppTokens, UpdateTokens, UpdateUserData, VerifyMfa, buildApplicationContextUrl, buildGatewayUrl, buildSsoStartUrl, clearApplicationContextCache, createSecureClientState, extractGatewayRateLimitInfo, fetchApplicationContextCode, gatewayAuthInterceptor, getGatewayErrorMessage, hasGatewayTokens, isExpired, isGatewayAuthRequestUrl, mapGatewayTokens, mapGatewayUser, normalizeGatewayBase, readPersistedGatewayAuthTokens, resolveAccessTokenRefreshSkewMs, resolveApiDateValue, resolveApplicationCodeOption, resolveGatewayAuthPath, resolveGatewayDeviceToken, sanitizePersistedAuthState, withGatewayAuthNgswBypass };
724
- export type { ApiDateValue, AppSession, ApplicationListItem, AuthLoginData, AuthRateLimit, AuthRateLimitScope, AuthRefreshData, AuthStateModel, AuthTokens, BuildSsoStartUrlOptions, GatewayApiDateValue, GatewayAppSession, GatewayApplicationCodeOption, GatewayApplicationContextData, GatewayApplicationLaunchData, GatewayApplicationListItem, GatewayApplicationsData, GatewayAuthHookResult, GatewayAuthOptions, GatewayAuthTokens, GatewayDeviceTokenOption, GatewayExternalTokenExchangeRequest, GatewayLoginLanguageOption, GatewayLoginPageOptions, GatewayLoginRequest, GatewayLoginResponse, GatewayLogoutRequest, GatewayMappedTokens, GatewayMappedUser, GatewayNafathStartData, GatewayNafathStartRequest, GatewayNafathStatusData, GatewayNafathStatusRequest, GatewayPlatform, GatewayRateLimitInfo, GatewayRefreshData, GatewayRefreshRequest, GatewayResendMfaRequest, GatewayResponse, GatewaySsoExchangeRequest, GatewaySsoFlow, GatewaySsoProtocol, GatewaySsoProvider, GatewaySsoProvidersData, GatewayTwoFactorChallenge, GatewayUserDetails, GatewayVerifyMfaRequest, LoginRequest, Response, SsoProvider, TwoFactorChallenge, User, UserDetails };
755
+ export { AUTH_STATE_DEFAULTS, ClearAllAppSessions, ClearAppSession, ClearError, ClearPendingMfa, ClearRateLimit, ExchangeSsoCode, GATEWAY_AUTH_ACCESS_TOKEN_REFRESH_SKEW_MS, GATEWAY_AUTH_DEVICE_TOKEN, GATEWAY_AUTH_DEVICE_TOKEN_STORAGE_KEY, GATEWAY_AUTH_ENDPOINTS, GATEWAY_AUTH_NGSW_BYPASS_PARAM, GATEWAY_AUTH_OPTIONS, GATEWAY_AUTH_RETRY_CONTEXT, GATEWAY_RATE_LIMIT_ERROR_CODE, GATEWAY_RATE_LIMIT_STATUS, GatewayAuthFacade, GatewayAuthState, GatewayLoginPage, GatewayMfa, GatewaySsoButtons, GatewaySsoCallback, GatewaySsoSession, LaunchApplication, LoadApplications, LoadSsoProviders, Login, LoginFailure, LoginSuccess, Logout, ResendMfa, SetAppSession, SetApplications, SetRateLimit, StartSso, UpdateAppTokens, UpdateTokens, UpdateUserData, VerifyMfa, buildApplicationContextUrl, buildGatewayUrl, buildSsoStartUrl, clearApplicationContextCache, correlationIdInterceptor, createCacheSessionInterceptor, createIdempotencyInterceptor, createLanguageInterceptor, createMessageInterceptor, createSecureClientState, extractGatewayRateLimitInfo, fetchApplicationContextCode, gatewayAuthInterceptor, getGatewayErrorMessage, hasGatewayTokens, idempotencyInterceptor, isExpired, isGatewayAuthRequestUrl, mapGatewayTokens, mapGatewayUser, messageInterceptor, normalizeGatewayBase, readPersistedGatewayAuthTokens, resolveAccessTokenRefreshSkewMs, resolveApiDateValue, resolveApplicationCodeOption, resolveGatewayAuthPath, resolveGatewayDeviceToken, sanitizePersistedAuthState, withGatewayAuthNgswBypass };
756
+ export type { ApiDateValue, AppSession, ApplicationListItem, AuthLoginData, AuthRateLimit, AuthRateLimitScope, AuthRefreshData, AuthStateModel, AuthTokens, BuildSsoStartUrlOptions, CacheSessionInterceptorOptions, GatewayApiDateValue, GatewayAppSession, GatewayApplicationCodeOption, GatewayApplicationContextData, GatewayApplicationLaunchData, GatewayApplicationListItem, GatewayApplicationsData, GatewayAuthHookResult, GatewayAuthOptions, GatewayAuthTokens, GatewayDeviceTokenOption, GatewayExternalTokenExchangeRequest, GatewayLoginLanguageOption, GatewayLoginPageOptions, GatewayLoginRequest, GatewayLoginResponse, GatewayLogoutRequest, GatewayMappedTokens, GatewayMappedUser, GatewayNafathStartData, GatewayNafathStartRequest, GatewayNafathStatusData, GatewayNafathStatusRequest, GatewayPlatform, GatewayRateLimitInfo, GatewayRefreshData, GatewayRefreshRequest, GatewayResendMfaRequest, GatewayResponse, GatewaySsoExchangeRequest, GatewaySsoFlow, GatewaySsoProtocol, GatewaySsoProvider, GatewaySsoProvidersData, GatewayTwoFactorChallenge, GatewayUserDetails, GatewayVerifyMfaRequest, IdempotencyInterceptorOptions, LanguageInterceptorOptions, LoginRequest, MessageInterceptorOptions, Response, SsoProvider, TwoFactorChallenge, User, UserDetails };