{"version":3,"file":"angular-oidc-mod.mjs","sources":["../../../projects/angular-oidc-mod/src/lib/config/loader/config-loader.ts","../../../projects/angular-oidc-mod/src/lib/logging/log-level.ts","../../../projects/angular-oidc-mod/src/lib/logging/abstract-logger.service.ts","../../../projects/angular-oidc-mod/src/lib/logging/console-logger.service.ts","../../../projects/angular-oidc-mod/src/lib/storage/abstract-security-storage.ts","../../../projects/angular-oidc-mod/src/lib/storage/default-sessionstorage.service.ts","../../../projects/angular-oidc-mod/src/lib/auth.module.ts","../../../projects/angular-oidc-mod/src/lib/logging/logger.service.ts","../../../projects/angular-oidc-mod/src/lib/storage/browser-storage.service.ts","../../../projects/angular-oidc-mod/src/lib/storage/storage-persistence.service.ts","../../../projects/angular-oidc-mod/src/lib/auto-login/auto-login.service.ts","../../../projects/angular-oidc-mod/src/lib/public-events/event-types.ts","../../../projects/angular-oidc-mod/src/lib/iframe/existing-iframe.service.ts","../../../projects/angular-oidc-mod/src/lib/public-events/public-events.service.ts","../../../projects/angular-oidc-mod/src/lib/iframe/check-session.service.ts","../../../projects/angular-oidc-mod/src/lib/utils/url/current-url.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/validation-result.ts","../../../projects/angular-oidc-mod/src/lib/utils/url/uri-encoder.ts","../../../projects/angular-oidc-mod/src/lib/utils/crypto/crypto.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/random/random.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/flows-data.service.ts","../../../projects/angular-oidc-mod/src/lib/utils/flowHelper/flow-helper.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/jwt-window-crypto.service.ts","../../../projects/angular-oidc-mod/src/lib/utils/url/url.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/token-validation.helper.ts","../../../projects/angular-oidc-mod/src/lib/utils/tokenHelper/token-helper.service.ts","../../../projects/angular-oidc-mod/src/lib/extractors/jwk.extractor.ts","../../../projects/angular-oidc-mod/src/lib/validation/jwk-window-crypto.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/token-validation.service.ts","../../../projects/angular-oidc-mod/src/lib/api/http-base.service.ts","../../../projects/angular-oidc-mod/src/lib/api/data.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/code-flow-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/auth-state/auth-state.service.ts","../../../projects/angular-oidc-mod/src/lib/user-data/user.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/reset-auth-data.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/implicit-flow-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/signin-key-data.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/history-jwt-keys-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/user-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/state-validation-result.ts","../../../projects/angular-oidc-mod/src/lib/utils/equality/equality.service.ts","../../../projects/angular-oidc-mod/src/lib/validation/state-validation.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/state-validation-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/refresh-session-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/callback-handling/refresh-token-callback-handler.service.ts","../../../projects/angular-oidc-mod/src/lib/flows/flows.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/interval.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/implicit-flow-callback.service.ts","../../../projects/angular-oidc-mod/src/lib/iframe/silent-renew.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/code-flow-callback.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/callback.service.ts","../../../projects/angular-oidc-mod/src/lib/config/auth-well-known/auth-well-known-data.service.ts","../../../projects/angular-oidc-mod/src/lib/config/auth-well-known/auth-well-known.service.ts","../../../projects/angular-oidc-mod/src/lib/iframe/refresh-session-iframe.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/refresh-session-refresh-token.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/refresh-session.service.ts","../../../projects/angular-oidc-mod/src/lib/config/default-config.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/ensure-authority.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/ensure-clientId.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/ensure-no-duplicated-configs.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/ensure-redirect-url.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/ensure-silentRenewUrl-with-no-refreshtokens.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/use-offline-scope-with-silent-renew.rule.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/rules/index.ts","../../../projects/angular-oidc-mod/src/lib/config/validation/config-validation.service.ts","../../../projects/angular-oidc-mod/src/lib/utils/platform-provider/platform.provider.ts","../../../projects/angular-oidc-mod/src/lib/config/config.service.ts","../../../projects/angular-oidc-mod/src/lib/callback/periodically-token-check.service.ts","../../../projects/angular-oidc-mod/src/lib/login/popup/popup.service.ts","../../../projects/angular-oidc-mod/src/lib/auth-state/check-auth.service.ts","../../../projects/angular-oidc-mod/src/lib/login/response-type-validation/response-type-validation.service.ts","../../../projects/angular-oidc-mod/src/lib/utils/redirect/redirect.service.ts","../../../projects/angular-oidc-mod/src/lib/login/par/par.service.ts","../../../projects/angular-oidc-mod/src/lib/login/par/par-login.service.ts","../../../projects/angular-oidc-mod/src/lib/login/popup/popup-login.service.ts","../../../projects/angular-oidc-mod/src/lib/login/standard/standard-login.service.ts","../../../projects/angular-oidc-mod/src/lib/login/login.service.ts","../../../projects/angular-oidc-mod/src/lib/auto-login/auto-login-all-routes.guard.ts","../../../projects/angular-oidc-mod/src/lib/auto-login/auto-login-partial-routes.guard.ts","../../../projects/angular-oidc-mod/src/lib/interceptor/closest-matching-route.service.ts","../../../projects/angular-oidc-mod/src/lib/interceptor/auth.interceptor.ts","../../../projects/angular-oidc-mod/src/lib/utils/object/object.helper.ts","../../../projects/angular-oidc-mod/src/lib/logoff-revoke/logoff-revocation.service.ts","../../../projects/angular-oidc-mod/src/lib/oidc.security.service.ts","../../../projects/angular-oidc-mod/src/lib/storage/default-localstorage.service.ts","../../../projects/angular-oidc-mod/src/lib/index.ts","../../../projects/angular-oidc-mod/src/public-api.ts","../../../projects/angular-oidc-mod/src/angular-oidc-mod.ts"],"sourcesContent":["import { Provider } from '@angular/core';\nimport { forkJoin, Observable, of } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../openid-configuration';\n\nexport class OpenIdConfigLoader {\n  loader?: Provider;\n}\n\nexport abstract class StsConfigLoader {\n  abstract loadConfigs(): Observable<OpenIdConfiguration[]>;\n}\n\nexport class StsConfigStaticLoader implements StsConfigLoader {\n  constructor(private readonly passedConfigs: OpenIdConfiguration | OpenIdConfiguration[]) {}\n\n  loadConfigs(): Observable<OpenIdConfiguration[]> {\n    if (Array.isArray(this.passedConfigs)) {\n      return of(this.passedConfigs);\n    }\n\n    return of([this.passedConfigs]);\n  }\n}\n\nexport class StsConfigHttpLoader implements StsConfigLoader {\n  constructor(\n    private readonly configs$: Observable<OpenIdConfiguration> | Observable<OpenIdConfiguration>[] | Observable<OpenIdConfiguration[]>\n  ) {}\n\n  loadConfigs(): Observable<OpenIdConfiguration[]> {\n    if (Array.isArray(this.configs$)) {\n      return forkJoin(this.configs$);\n    }\n\n    const singleConfigOrArray = this.configs$ as Observable<unknown>;\n\n    return singleConfigOrArray.pipe(\n      map((value: unknown) => {\n        if (Array.isArray(value)) {\n          return value as OpenIdConfiguration[];\n        }\n\n        return [value] as OpenIdConfiguration[];\n      })\n    );\n  }\n}\n","export enum LogLevel {\n  None,\n  Debug,\n  Warn,\n  Error,\n}\n","import { Injectable } from '@angular/core';\nimport { LogLevel } from './log-level';\n\n\n/**\n * Implement this class-interface to create a custom logger service.\n */\n@Injectable({ providedIn: 'root' })\nexport abstract class AbstractLoggerService {\n  abstract logError(message: any, ...args: any[]): void;\n\n  abstract logWarning(message: any, ...args: any[]): void;\n\n  abstract logDebug(message: any, ...args: any[]): void;\n\n}\n\n@Injectable({ providedIn: 'root' })\nexport  class CustomLoggerService {\n\n  private ANSI_RESET = \"\\u001B[0m\";\n  private ANSI_BLACK = \"\\u001B[30m\";\n  private ANSI_RED = \"\\u001B[31m\";\n  private ANSI_GREEN = \"\\u001B[32m\";\n  private ANSI_YELLOW = \"\\u001B[33m\";\n  private ANSI_BLUE = \"\\u001B[34m\";\n  private ANSI_PURPLE = \"\\u001B[35m\";\n  private ANSI_CYAN = \"\\u001B[36m\";\n  private ANSI_WHITE = \"\\u001B[37m\";\n\n  private store: any[] = [];\n\n\n   logError(message: any, ...args: any[]): void {\n      this.consoleLog(message, this.ANSI_RED, ...args);\n   }\n\n \n    logWarning(message: any, ...args: any[]): void {\n      this.consoleLog(message, this.ANSI_PURPLE, ...args);\n    }\n\n    logDebug(message: any, ...args: any[]): void {\n       this.consoleLog(message, this.ANSI_BLUE, ...args)\n    }\n\n    logStore(level: LogLevel, message: any, ...args: any[]): void {\n        const logObject = {\n          level: level,\n          message: message,\n          args: args\n        }\n        this.store.push(logObject)\n    }\n\n    logShow() {\n      for(let item of this.store) {\n        switch(item.lavel) {\n          case LogLevel.Debug : {\n             this.logDebug(item.message, ...item.args);\n             break;\n          }\n          case LogLevel.Warn : {\n            this.logWarning(item.message, ...item.args);\n            break;\n          }\n          case LogLevel.Error : {\n            this.logError(item.message, ...item.args);\n            break;\n          }\n        }\n      }\n    }\n\n  /**\n   * Console log.\n   * \n   * @param message \n   * @param color \n   * @param args \n   */\n  private consoleLog(message: string, color: string, ...args: any) : void {\n    const stylingMessage =  color + message ;\n    const params = (stylingMessage)\n    const param = [params, ...args];\n    console.log.apply(this, param)\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractLoggerService } from './abstract-logger.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ConsoleLoggerService implements AbstractLoggerService {\n  logError(message?: any, ...args: any[]): void {\n    console.error(message, ...args);\n  }\n\n  logWarning(message?: any, ...args: any[]): void {\n    console.warn(message, ...args);\n  }\n\n  logDebug(message?: any, ...args: any[]): void {\n    console.debug(message, ...args);\n  }\n}\n","import { Injectable } from '@angular/core';\n\n/**\n * Implement this class-interface to create a custom storage.\n */\n@Injectable({ providedIn: 'root' })\nexport abstract class AbstractSecurityStorage {\n  /**\n   * This method must contain the logic to read the storage.\n   *\n   * @return The value of the given key\n   */\n  abstract read(key: string): any;\n\n  /**\n   * This method must contain the logic to write the storage.\n   *\n   * @param key The key to write a value for\n   * @param value The value for the given key\n   */\n  abstract write(key: string, value: any): void;\n\n  /**\n   * This method must contain the logic to remove an item from the storage.\n   *\n   * @param key The value for the key to be removed\n   */\n  abstract remove(key: string): void;\n\n  /**\n   * This method must contain the logic to remove all items from the storage.\n   */\n  abstract clear(): void;\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractSecurityStorage } from './abstract-security-storage';\n\n@Injectable({ providedIn: 'root' })\nexport class DefaultSessionStorageService implements AbstractSecurityStorage {\n  public read(key: string): any {\n    return sessionStorage.getItem(key);\n  }\n\n  public write(key: string, value: any): void {\n    sessionStorage.setItem(key, value);\n  }\n\n  public remove(key: string): void {\n    sessionStorage.removeItem(key);\n  }\n\n  public clear(): void {\n    sessionStorage.clear();\n  }\n}\n","import { CommonModule } from '@angular/common';\nimport { HttpClientModule } from '@angular/common/http';\nimport { InjectionToken, ModuleWithProviders, NgModule, Provider } from '@angular/core';\nimport { StsConfigLoader, StsConfigStaticLoader } from './config/loader/config-loader';\nimport { OpenIdConfiguration } from './config/openid-configuration';\nimport { AbstractLoggerService } from './logging/abstract-logger.service';\nimport { ConsoleLoggerService } from './logging/console-logger.service';\nimport { AbstractSecurityStorage } from './storage/abstract-security-storage';\nimport { DefaultSessionStorageService } from './storage/default-sessionstorage.service';\n\nexport interface PassedInitialConfig {\n  config?: OpenIdConfiguration | OpenIdConfiguration[];\n  loader?: Provider;\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport function createStaticLoader(passedConfig: PassedInitialConfig) {\n  return new StsConfigStaticLoader(passedConfig.config);\n}\n\nexport const PASSED_CONFIG = new InjectionToken<PassedInitialConfig>('PASSED_CONFIG');\n\n@NgModule({\n  imports: [CommonModule, HttpClientModule],\n  declarations: [],\n  exports: [],\n})\nexport class AuthModule {\n  static forRoot(passedConfig: PassedInitialConfig): ModuleWithProviders<AuthModule> {\n    return {\n      ngModule: AuthModule,\n      providers: [\n        // Make the PASSED_CONFIG available through injection\n        { provide: PASSED_CONFIG, useValue: passedConfig },\n\n        // Create the loader: Either the one getting passed or a static one\n        passedConfig?.loader || { provide: StsConfigLoader, useFactory: createStaticLoader, deps: [PASSED_CONFIG] },\n        { provide: AbstractSecurityStorage, useClass: DefaultSessionStorageService },\n        { provide: AbstractLoggerService, useClass: ConsoleLoggerService },\n      ],\n    };\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { AbstractLoggerService, CustomLoggerService } from './abstract-logger.service';\nimport { LogLevel } from './log-level';\n\n@Injectable({ providedIn: 'root' })\nexport class LoggerService {\n  constructor(\n    private readonly abstractLoggerService: AbstractLoggerService,\n    private readonly customLoggerService: CustomLoggerService\n    ) {}\n\n  logError(configuration: OpenIdConfiguration, message: any, ...args: any[]): void {\n    if (this.loggingIsTurnedOff(configuration)) {\n      return;\n    }\n\n    const { configId } = configuration;\n    const messageToLog = this.isObject(message) ? JSON.stringify(message) : message;\n\n    if (!!args && !!args.length) {\n      this.abstractLoggerService.logError(`[ERROR] ${configId} - ${messageToLog}`, ...args);\n    } else {\n      this.abstractLoggerService.logError(`[ERROR] ${configId} - ${messageToLog}`);\n    }\n  }\n\n  logWarning(configuration: OpenIdConfiguration, message: any, ...args: any[]): void {\n    if (!this.logLevelIsSet(configuration)) {\n      return;\n    }\n\n    if (this.loggingIsTurnedOff(configuration)) {\n      return;\n    }\n\n    if (!this.currentLogLevelIsEqualOrSmallerThan(configuration, LogLevel.Warn)) {\n      return;\n    }\n\n    const { configId } = configuration;\n    const messageToLog = this.isObject(message) ? JSON.stringify(message) : message;\n\n    if (!!args && !!args.length) {\n      this.abstractLoggerService.logWarning(`[WARN] ${configId} - ${messageToLog}`, ...args);\n    } else {\n      this.abstractLoggerService.logWarning(`[WARN] ${configId} - ${messageToLog}`);\n    }\n  }\n\n  logDebug(configuration: OpenIdConfiguration, message: any, ...args: any[]): void {\n    if (!this.logLevelIsSet(configuration)) {\n      return;\n    }\n\n    if (this.loggingIsTurnedOff(configuration)) {\n      return;\n    }\n\n    if (!this.currentLogLevelIsEqualOrSmallerThan(configuration, LogLevel.Debug)) {\n      return;\n    }\n\n    const { configId } = configuration;\n    const messageToLog = this.isObject(message) ? JSON.stringify(message) : message;\n\n    if (!!args && !!args.length) {\n      this.abstractLoggerService.logDebug(`[DEBUG] ${configId} - ${messageToLog}`, ...args);\n    } else {\n      this.abstractLoggerService.logDebug(`[DEBUG] ${configId} - ${messageToLog}`);\n    }\n  }\n\n\n  logStorage(type: LogLevel, message: any, ...args: any[]): void {\n    this.customLoggerService.logStore(type, message, ...args)\n  }\n\n  logShow() : void {\n    this.customLoggerService.logShow();\n  }\n\n  getCustom() : CustomLoggerService {\n    return this.customLoggerService;\n  }\n\n  private currentLogLevelIsEqualOrSmallerThan(configuration: OpenIdConfiguration, logLevelToCompare: LogLevel): boolean {\n    const { logLevel } = configuration || {};\n\n    return logLevel <= logLevelToCompare;\n  }\n\n  private logLevelIsSet(configuration: OpenIdConfiguration): boolean {\n    const { logLevel } = configuration || {};\n\n    if (logLevel === null) {\n      return false;\n    }\n\n    return logLevel !== undefined;\n  }\n\n  private loggingIsTurnedOff(configuration: OpenIdConfiguration): boolean {\n    const { logLevel } = configuration || {};\n\n    return logLevel === LogLevel.None;\n  }\n\n  private isObject(possibleObject: any): boolean {\n    return Object.prototype.toString.call(possibleObject) === '[object Object]';\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LoggerService } from '../logging/logger.service';\nimport { AbstractSecurityStorage } from './abstract-security-storage';\n\n@Injectable({ providedIn: 'root' })\nexport class BrowserStorageService {\n  constructor(private readonly loggerService: LoggerService, private readonly abstractSecurityStorage: AbstractSecurityStorage) {}\n\n  read(key: string, configuration: OpenIdConfiguration): any {\n    const { configId } = configuration;\n\n    if (!this.hasStorage()) {\n      this.loggerService.logDebug(configuration, `Wanted to read '${key}' but Storage was undefined`);\n\n      return null;\n    }\n\n    const storedConfig = this.abstractSecurityStorage.read(configId);\n\n    if (!storedConfig) {\n      return null;\n    }\n\n    return JSON.parse(storedConfig);\n  }\n\n  write(value: any, configuration: OpenIdConfiguration): boolean {\n    const { configId } = configuration;\n\n    if (!this.hasStorage()) {\n      this.loggerService.logDebug(configuration, `Wanted to write '${value}' but Storage was falsy`);\n\n      return false;\n    }\n\n    value = value || null;\n\n    this.abstractSecurityStorage.write(configId, JSON.stringify(value));\n\n    return true;\n  }\n\n  remove(key: string, configuration: OpenIdConfiguration): boolean {\n    if (!this.hasStorage()) {\n      this.loggerService.logDebug(configuration, `Wanted to remove '${key}' but Storage was falsy`);\n\n      return false;\n    }\n\n    // const storage = this.getStorage(configuration);\n    // if (!storage) {\n    //   this.loggerService.logDebug(configuration, `Wanted to write '${key}' but Storage was falsy`);\n\n    //   return false;\n    // }\n\n    this.abstractSecurityStorage.remove(key);\n\n    return true;\n  }\n\n  // TODO THIS STORAGE WANTS AN ID BUT CLEARS EVERYTHING\n  clear(configuration: OpenIdConfiguration): boolean {\n    if (!this.hasStorage()) {\n      this.loggerService.logDebug(configuration, `Wanted to clear storage but Storage was falsy`);\n\n      return false;\n    }\n\n    // const storage = this.getStorage(configuration);\n    // if (!storage) {\n    //   this.loggerService.logDebug(configuration, `Wanted to clear storage but Storage was falsy`);\n\n    //   return false;\n    // }\n\n    this.abstractSecurityStorage.clear();\n\n    return true;\n  }\n\n  private hasStorage(): boolean {\n    return typeof Storage !== 'undefined';\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from './../config/openid-configuration';\nimport { BrowserStorageService } from './browser-storage.service';\n\nexport type StorageKeys =\n  | 'authnResult'\n  | 'authzData'\n  | 'access_token_expires_at'\n  | 'authWellKnownEndPoints'\n  | 'userData'\n  | 'authNonce'\n  | 'codeVerifier'\n  | 'authStateControl'\n  | 'reusable_refresh_token'\n  | 'session_state'\n  | 'storageSilentRenewRunning'\n  | 'storageCodeFlowInProgress'\n  | 'storageCustomParamsAuthRequest'\n  | 'storageCustomParamsRefresh'\n  | 'storageCustomParamsEndSession'\n  | 'redirect'\n  | 'configIds'\n  | 'jwtKeys'\n  | 'popupauth';\n\n@Injectable({ providedIn: 'root' })\nexport class StoragePersistenceService {\n  constructor(private readonly browserStorageService: BrowserStorageService) {}\n\n  read(key: StorageKeys, config: OpenIdConfiguration): any {\n    const storedConfig = this.browserStorageService.read(key, config) || {};\n\n    return storedConfig[key];\n  }\n\n  write(key: StorageKeys, value: any, config: OpenIdConfiguration): boolean {\n    const storedConfig = this.browserStorageService.read(key, config) || {};\n\n    storedConfig[key] = value;\n\n    return this.browserStorageService.write(storedConfig, config);\n  }\n\n  remove(key: StorageKeys, config: OpenIdConfiguration): void {\n    const storedConfig = this.browserStorageService.read(key, config) || {};\n\n    delete storedConfig[key];\n\n    this.browserStorageService.write(storedConfig, config);\n  }\n\n  clear(config: OpenIdConfiguration): void {\n    this.browserStorageService.clear(config);\n  }\n\n  resetStorageFlowData(config: OpenIdConfiguration): void {\n    this.remove('session_state', config);\n    this.remove('storageSilentRenewRunning', config);\n    this.remove('storageCodeFlowInProgress', config);\n    this.remove('codeVerifier', config);\n    this.remove('userData', config);\n    this.remove('storageCustomParamsAuthRequest', config);\n    this.remove('access_token_expires_at', config);\n    this.remove('storageCustomParamsRefresh', config);\n    this.remove('storageCustomParamsEndSession', config);\n    this.remove('reusable_refresh_token', config);\n  }\n\n  resetAuthStateInStorage(config: OpenIdConfiguration): void {\n    this.remove('authzData', config);\n    this.remove('reusable_refresh_token', config);\n    this.remove('authnResult', config);\n  }\n\n  getAccessToken(config: OpenIdConfiguration): string {\n    return this.read('authzData', config);\n  }\n\n  getIdToken(config: OpenIdConfiguration): string {\n    return this.read('authnResult', config)?.id_token;\n  }\n\n  getRefreshToken(config: OpenIdConfiguration): string {\n    let refreshToken = this.read('authnResult', config)?.refresh_token;\n\n    if (!refreshToken && config.allowUnsafeReuseRefreshToken) {\n      return this.read('reusable_refresh_token', config);\n    }\n\n    return refreshToken;\n  }\n\n  getAuthenticationResult(config: OpenIdConfiguration): any {\n    return this.read('authnResult', config);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\n\nconst STORAGE_KEY = 'redirect';\n\n@Injectable({ providedIn: 'root' })\nexport class AutoLoginService {\n  constructor(private readonly storageService: StoragePersistenceService, private readonly router: Router) {}\n\n  checkSavedRedirectRouteAndNavigate(config: OpenIdConfiguration): void {\n    const savedRouteForRedirect = this.getStoredRedirectRoute(config);\n\n    if (savedRouteForRedirect) {\n      this.deleteStoredRedirectRoute(config);\n      this.router.navigateByUrl(savedRouteForRedirect);\n    }\n  }\n\n  /**\n   * Saves the redirect URL to storage.\n   *\n   * @param config The OpenId configuration.\n   * @param url The redirect URL to save.\n   */\n  saveRedirectRoute(config: OpenIdConfiguration, url: string): void {\n    this.storageService.write(STORAGE_KEY, url, config);\n  }\n\n  /**\n   * Gets the stored redirect URL from storage.\n   */\n  private getStoredRedirectRoute(config: OpenIdConfiguration): string {\n    return this.storageService.read(STORAGE_KEY, config);\n  }\n\n  /**\n   * Removes the redirect URL from storage.\n   */\n  private deleteStoredRedirectRoute(config: OpenIdConfiguration): void {\n    this.storageService.remove(STORAGE_KEY, config);\n  }\n}\n","// eslint-disable-next-line no-shadow\nexport enum EventTypes {\n  /**\n   *  This only works in the AppModule Constructor\n   */\n  ConfigLoaded,\n  CheckingAuth,\n  CheckingAuthFinished,\n  CheckingAuthFinishedWithError,\n  ConfigLoadingFailed,\n  CheckSessionReceived,\n  UserDataChanged,\n  NewAuthenticationResult,\n  TokenExpired,\n  IdTokenExpired,\n  SilentRenewStarted,\n  SilentRenewFailed,\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LoggerService } from '../logging/logger.service';\n\n@Injectable({ providedIn: 'root' })\nexport class IFrameService {\n  constructor(@Inject(DOCUMENT) private readonly document: Document, private readonly loggerService: LoggerService) {}\n\n  getExistingIFrame(identifier: string): HTMLIFrameElement | null {\n    const iFrameOnParent = this.getIFrameFromParentWindow(identifier);\n\n    if (this.isIFrameElement(iFrameOnParent)) {\n      return iFrameOnParent;\n    }\n\n    const iFrameOnSelf = this.getIFrameFromWindow(identifier);\n\n    if (this.isIFrameElement(iFrameOnSelf)) {\n      return iFrameOnSelf;\n    }\n\n    return null;\n  }\n\n  addIFrameToWindowBody(identifier: string, config: OpenIdConfiguration): HTMLIFrameElement {\n    const sessionIframe = this.document.createElement('iframe');\n\n    sessionIframe.id = identifier;\n    sessionIframe.title = identifier;\n    this.loggerService.logDebug(config, sessionIframe);\n    sessionIframe.style.display = 'none';\n    this.document.body.appendChild(sessionIframe);\n\n    return sessionIframe;\n  }\n\n  private getIFrameFromParentWindow(identifier: string): HTMLIFrameElement | null {\n    try {\n      const iFrameElement = this.document.defaultView.parent.document.getElementById(identifier);\n\n      if (this.isIFrameElement(iFrameElement)) {\n        return iFrameElement;\n      }\n\n      return null;\n    } catch (e) {\n      return null;\n    }\n  }\n\n  private getIFrameFromWindow(identifier: string): HTMLIFrameElement | null {\n    const iFrameElement = this.document.getElementById(identifier);\n\n    if (this.isIFrameElement(iFrameElement)) {\n      return iFrameElement;\n    }\n\n    return null;\n  }\n\n  private isIFrameElement(element: HTMLElement | null): element is HTMLIFrameElement {\n    return !!element && element instanceof HTMLIFrameElement;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { EventTypes } from './event-types';\nimport { OidcClientNotification } from './notification';\n\n@Injectable({ providedIn: 'root' })\nexport class PublicEventsService {\n  private readonly notify = new ReplaySubject<OidcClientNotification<any>>(1);\n\n  /**\n   * Fires a new event.\n   *\n   * @param type The event type.\n   * @param value The event value.\n   */\n  fireEvent<T>(type: EventTypes, value?: T): void {\n    this.notify.next({ type, value });\n  }\n\n  /**\n   * Wires up the event notification observable.\n   */\n  registerForEvents(): Observable<OidcClientNotification<any>> {\n    return this.notify.asObservable();\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone } from '@angular/core';\nimport { BehaviorSubject, Observable, of } from 'rxjs';\nimport { take } from 'rxjs/operators';\nimport { LoggerService } from '../logging/logger.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { IFrameService } from './existing-iframe.service';\n\nconst IFRAME_FOR_CHECK_SESSION_IDENTIFIER = 'myiFrameForCheckSession';\n\n// http://openid.net/specs/openid-connect-session-1_0-ID4.html\n\n@Injectable({ providedIn: 'root' })\nexport class CheckSessionService {\n  private checkSessionReceived = false;\n\n  private scheduledHeartBeatRunning: any;\n\n  private lastIFrameRefresh = 0;\n\n  private outstandingMessages = 0;\n\n  private readonly heartBeatInterval = 3000;\n\n  private readonly iframeRefreshInterval = 60000;\n\n  private readonly checkSessionChangedInternal$ = new BehaviorSubject<boolean>(false);\n\n  get checkSessionChanged$(): Observable<boolean> {\n    return this.checkSessionChangedInternal$.asObservable();\n  }\n\n  constructor(\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly loggerService: LoggerService,\n    private readonly iFrameService: IFrameService,\n    private readonly eventService: PublicEventsService,\n    private readonly zone: NgZone,\n    @Inject(DOCUMENT) private readonly document: Document\n  ) {}\n\n  isCheckSessionConfigured(configuration: OpenIdConfiguration): boolean {\n    const { startCheckSession } = configuration;\n\n    return startCheckSession;\n  }\n\n  start(configuration: OpenIdConfiguration): void {\n    if (!!this.scheduledHeartBeatRunning) {\n      return;\n    }\n\n    const { clientId } = configuration;\n\n    this.pollServerSession(clientId, configuration);\n  }\n\n  stop(): void {\n    if (!this.scheduledHeartBeatRunning) {\n      return;\n    }\n\n    this.clearScheduledHeartBeat();\n    this.checkSessionReceived = false;\n  }\n\n  serverStateChanged(configuration: OpenIdConfiguration): boolean {\n    const { startCheckSession } = configuration;\n\n    return startCheckSession && this.checkSessionReceived;\n  }\n\n  getExistingIframe(): HTMLIFrameElement {\n    return this.iFrameService.getExistingIFrame(IFRAME_FOR_CHECK_SESSION_IDENTIFIER);\n  }\n\n  private init(configuration: OpenIdConfiguration): Observable<any> {\n    if (this.lastIFrameRefresh + this.iframeRefreshInterval > Date.now()) {\n      return of(undefined);\n    }\n\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (!authWellKnownEndPoints) {\n      this.loggerService.logWarning(configuration, 'CheckSession - init check session: authWellKnownEndpoints is undefined. Returning.');\n\n      return of();\n    }\n\n    const existingIframe = this.getOrCreateIframe(configuration);\n    const checkSessionIframe = authWellKnownEndPoints.checkSessionIframe;\n\n    if (checkSessionIframe) {\n      existingIframe.contentWindow.location.replace(checkSessionIframe);\n    } else {\n      this.loggerService.logWarning(configuration, 'CheckSession - init check session: checkSessionIframe is not configured to run');\n    }\n\n    return new Observable((observer) => {\n      existingIframe.onload = (): void => {\n        this.lastIFrameRefresh = Date.now();\n        observer.next();\n        observer.complete();\n      };\n    });\n  }\n\n  private pollServerSession(clientId: string, configuration: OpenIdConfiguration): void {\n    this.outstandingMessages = 0;\n\n    const pollServerSessionRecur = (): void => {\n      this.init(configuration)\n        .pipe(take(1))\n        .subscribe(() => {\n          const existingIframe = this.getExistingIframe();\n\n          if (existingIframe && clientId) {\n            this.loggerService.logDebug(configuration, `CheckSession - clientId : '${clientId}' - existingIframe: '${existingIframe}'`);\n            const sessionState = this.storagePersistenceService.read('session_state', configuration);\n            const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n            if (sessionState && authWellKnownEndPoints?.checkSessionIframe) {\n              const iframeOrigin = new URL(authWellKnownEndPoints.checkSessionIframe)?.origin;\n\n              this.outstandingMessages++;\n              existingIframe.contentWindow.postMessage(clientId + ' ' + sessionState, iframeOrigin);\n            } else {\n              this.loggerService.logDebug(\n                configuration,\n                `CheckSession - session_state is '${sessionState}' - AuthWellKnownEndPoints is '${JSON.stringify(\n                  authWellKnownEndPoints,\n                  null,\n                  2\n                )}'`\n              );\n              this.checkSessionChangedInternal$.next(true);\n            }\n          } else {\n            this.loggerService.logWarning(\n              configuration,\n              `CheckSession - OidcSecurityCheckSession pollServerSession checkSession IFrame does not exist:\n               clientId : '${clientId}' - existingIframe: '${existingIframe}'`\n            );\n          }\n\n          // after sending three messages with no response, fail.\n          if (this.outstandingMessages > 3) {\n            this.loggerService.logError(\n              configuration,\n              `CheckSession - OidcSecurityCheckSession not receiving check session response messages.\n                            Outstanding messages: '${this.outstandingMessages}'. Server unreachable?`\n            );\n          }\n\n          this.zone.runOutsideAngular(() => {\n            this.scheduledHeartBeatRunning = setTimeout(() => this.zone.run(pollServerSessionRecur), this.heartBeatInterval);\n          });\n        });\n    };\n\n    pollServerSessionRecur();\n  }\n\n  private clearScheduledHeartBeat(): void {\n    clearTimeout(this.scheduledHeartBeatRunning);\n    this.scheduledHeartBeatRunning = null;\n  }\n\n  private messageHandler(configuration: OpenIdConfiguration, e: any): void {\n    const existingIFrame = this.getExistingIframe();\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n    const startsWith = !!authWellKnownEndPoints?.checkSessionIframe?.startsWith(e.origin);\n\n    this.outstandingMessages = 0;\n\n    if (existingIFrame && startsWith && e.source === existingIFrame.contentWindow) {\n      if (e.data === 'error') {\n        this.loggerService.logWarning(configuration, 'CheckSession - error from check session messageHandler');\n      } else if (e.data === 'changed') {\n        this.loggerService.logDebug(configuration, `CheckSession - ${e} from check session messageHandler`);\n        this.checkSessionReceived = true;\n        this.eventService.fireEvent(EventTypes.CheckSessionReceived, e.data);\n        this.checkSessionChangedInternal$.next(true);\n      } else {\n        this.eventService.fireEvent(EventTypes.CheckSessionReceived, e.data);\n        this.loggerService.logDebug(configuration, `CheckSession - ${e.data} from check session messageHandler`);\n      }\n    }\n  }\n\n  private bindMessageEventToIframe(configuration: OpenIdConfiguration): void {\n    const iframeMessageEvent = this.messageHandler.bind(this, configuration);\n\n    this.document.defaultView.addEventListener('message', iframeMessageEvent, false);\n  }\n\n  private getOrCreateIframe(configuration: OpenIdConfiguration): HTMLIFrameElement {\n    const existingIframe = this.getExistingIframe();\n\n    if (!existingIframe) {\n      const frame = this.iFrameService.addIFrameToWindowBody(IFRAME_FOR_CHECK_SESSION_IDENTIFIER, configuration);\n\n      this.bindMessageEventToIframe(configuration);\n\n      return frame;\n    }\n\n    return existingIframe;\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class CurrentUrlService {\n  constructor(@Inject(DOCUMENT) private readonly document: Document) {}\n\n  getStateParamFromCurrentUrl(url?: string): string {\n    const currentUrl = url || this.getCurrentUrl();\n    const parsedUrl = new URL(currentUrl);\n    const urlParams = new URLSearchParams(parsedUrl.search);\n\n    return urlParams.get('state');\n  }\n\n  getCurrentUrl(): string {\n    return this.document.defaultView.location.toString();\n  }\n}\n","export enum ValidationResult {\n  NotSet = 'NotSet',\n  StatesDoNotMatch = 'StatesDoNotMatch',\n  SignatureFailed = 'SignatureFailed',\n  IncorrectNonce = 'IncorrectNonce',\n  RequiredPropertyMissing = 'RequiredPropertyMissing',\n  MaxOffsetExpired = 'MaxOffsetExpired',\n  IssDoesNotMatchIssuer = 'IssDoesNotMatchIssuer',\n  NoAuthWellKnownEndPoints = 'NoAuthWellKnownEndPoints',\n  IncorrectAud = 'IncorrectAud',\n  IncorrectIdTokenClaimsAfterRefresh = 'IncorrectIdTokenClaimsAfterRefresh',\n  IncorrectAzp = 'IncorrectAzp',\n  TokenExpired = 'TokenExpired',\n  IncorrectAtHash = 'IncorrectAtHash',\n  Ok = 'Ok',\n  LoginRequired = 'LoginRequired',\n  SecureTokenServerError = 'SecureTokenServerError',\n}\n","import { HttpParameterCodec } from '@angular/common/http';\n\nexport class UriEncoder implements HttpParameterCodec {\n  encodeKey(key: string): string {\n    return encodeURIComponent(key);\n  }\n\n  encodeValue(value: string): string {\n    return encodeURIComponent(value);\n  }\n\n  decodeKey(key: string): string {\n    return decodeURIComponent(key);\n  }\n\n  decodeValue(value: string): string {\n    return decodeURIComponent(value);\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class CryptoService {\n  constructor(@Inject(DOCUMENT) private readonly doc: Document) {}\n\n  getCrypto(): any {\n    // support for IE,  (window.crypto || window.msCrypto)\n    return this.doc.defaultView.crypto || (this.doc.defaultView as any).msCrypto;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { LoggerService } from '../../logging/logger.service';\nimport { CryptoService } from '../../utils/crypto/crypto.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\n\n@Injectable({ providedIn: 'root' })\nexport class RandomService {\n  constructor(private readonly cryptoService: CryptoService, private readonly loggerService: LoggerService) {}\n\n  createRandom(requiredLength: number, configuration: OpenIdConfiguration): string {\n    if (requiredLength <= 0) {\n      return '';\n    }\n\n    if (requiredLength > 0 && requiredLength < 7) {\n      this.loggerService.logWarning(\n        configuration,\n        `RandomService called with ${requiredLength} but 7 chars is the minimum, returning 10 chars`\n      );\n      requiredLength = 10;\n    }\n\n    const length = requiredLength - 6;\n    const arr = new Uint8Array(Math.floor(length / 2));\n    const crypto = this.cryptoService.getCrypto();\n\n    if (crypto) {\n      crypto.getRandomValues(arr);\n    }\n\n    return Array.from(arr, this.toHex).join('') + this.randomString(7);\n  }\n\n  private toHex(dec): string {\n    return ('0' + dec.toString(16)).substr(-2);\n  }\n\n  private randomString(length: number): string {\n    let result = '';\n    const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n\n    const values = new Uint32Array(length);\n    const crypto = this.cryptoService.getCrypto();\n\n    if (crypto) {\n      crypto.getRandomValues(values);\n      for (let i = 0; i < length; i++) {\n        result += characters[values[i] % characters.length];\n      }\n    }\n\n    return result;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { LoggerService } from '../logging/logger.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { RandomService } from './random/random.service';\n\n@Injectable({ providedIn: 'root' })\nexport class FlowsDataService {\n  constructor(\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly randomService: RandomService,\n    private readonly loggerService: LoggerService\n  ) {}\n\n  createNonce(configuration: OpenIdConfiguration): string {\n    const nonce = this.randomService.createRandom(40, configuration);\n\n    this.loggerService.logDebug(configuration, 'Nonce created. nonce:' + nonce);\n    this.setNonce(nonce, configuration);\n\n    return nonce;\n  }\n\n  setNonce(nonce: string, configuration: OpenIdConfiguration): void {\n    this.storagePersistenceService.write('authNonce', nonce, configuration);\n  }\n\n  getAuthStateControl(configuration: OpenIdConfiguration): any {\n    return this.storagePersistenceService.read('authStateControl', configuration);\n  }\n\n  setAuthStateControl(authStateControl: string, configuration: OpenIdConfiguration): boolean {\n    return this.storagePersistenceService.write('authStateControl', authStateControl, configuration);\n  }\n\n  getExistingOrCreateAuthStateControl(configuration: OpenIdConfiguration): any {\n    let state = this.storagePersistenceService.read('authStateControl', configuration);\n\n    if (!state) {\n      state = this.randomService.createRandom(40, configuration);\n      this.storagePersistenceService.write('authStateControl', state, configuration);\n    }\n\n    return state;\n  }\n\n  setSessionState(sessionState: any, configuration: OpenIdConfiguration): void {\n    this.storagePersistenceService.write('session_state', sessionState, configuration);\n  }\n\n  resetStorageFlowData(configuration: OpenIdConfiguration): void {\n    this.storagePersistenceService.resetStorageFlowData(configuration);\n  }\n\n  getCodeVerifier(configuration: OpenIdConfiguration): any {\n    return this.storagePersistenceService.read('codeVerifier', configuration);\n  }\n\n  createCodeVerifier(configuration: OpenIdConfiguration): string {\n    const codeVerifier = this.randomService.createRandom(67, configuration);\n\n    this.storagePersistenceService.write('codeVerifier', codeVerifier, configuration);\n\n    return codeVerifier;\n  }\n\n  isCodeFlowInProgress(configuration: OpenIdConfiguration): boolean {\n    const storageObject = this.getCodeFlowInProgressStorageEntry(configuration);\n\n    if (!storageObject) {\n      return false;\n    }\n\n    return storageObject.state === 'in progress';\n  }\n\n  setCodeFlowInProgress(configuration: OpenIdConfiguration): void {\n    const storageObject = {\n      state: 'in progress',\n    };\n\n    this.storagePersistenceService.write('storageCodeFlowInProgress', JSON.stringify(storageObject), configuration);\n  }\n\n  resetCodeFlowInProgress(configuration: OpenIdConfiguration): void {\n    this.storagePersistenceService.write('storageCodeFlowInProgress', '', configuration);\n  }\n\n  private getCodeFlowInProgressStorageEntry(configuration: OpenIdConfiguration): any {\n    const storageEntry = this.storagePersistenceService.read('storageCodeFlowInProgress', configuration);\n\n    if (!storageEntry) {\n      return null;\n    }\n\n    return JSON.parse(storageEntry);\n  }\n\n  isSilentRenewRunning(configuration: OpenIdConfiguration): boolean {\n    const { configId, silentRenewTimeoutInSeconds } = configuration;\n    const storageObject = this.getSilentRenewRunningStorageEntry(configuration);\n\n    if (!storageObject) {\n      return false;\n    }\n\n    const timeOutInMilliseconds = silentRenewTimeoutInSeconds * 1000;\n    const dateOfLaunchedProcessUtc = Date.parse(storageObject.dateOfLaunchedProcessUtc);\n    const currentDateUtc = Date.parse(new Date().toISOString());\n    const elapsedTimeInMilliseconds = Math.abs(currentDateUtc - dateOfLaunchedProcessUtc);\n    const isProbablyStuck = elapsedTimeInMilliseconds > timeOutInMilliseconds;\n\n    if (isProbablyStuck) {\n      this.loggerService.logDebug(configuration, 'silent renew process is probably stuck, state will be reset.', configId);\n      this.resetSilentRenewRunning(configuration);\n\n      return false;\n    }\n\n    return storageObject.state === 'running';\n  }\n\n  setSilentRenewRunning(configuration: OpenIdConfiguration): void {\n    const storageObject = {\n      state: 'running',\n      dateOfLaunchedProcessUtc: new Date().toISOString(),\n    };\n\n    this.storagePersistenceService.write('storageSilentRenewRunning', JSON.stringify(storageObject), configuration);\n  }\n\n  resetSilentRenewRunning(configuration: OpenIdConfiguration): void {\n    this.storagePersistenceService.write('storageSilentRenewRunning', '', configuration);\n  }\n\n  private getSilentRenewRunningStorageEntry(configuration: OpenIdConfiguration): any {\n    const storageEntry = this.storagePersistenceService.read('storageSilentRenewRunning', configuration);\n\n    if (!storageEntry) {\n      return null;\n    }\n\n    return JSON.parse(storageEntry);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\n\n@Injectable({ providedIn: 'root' })\nexport class FlowHelper {\n  isCurrentFlowCodeFlow(configuration: OpenIdConfiguration): boolean {\n    return this.currentFlowIs('code', configuration);\n  }\n\n  isCurrentFlowAnyImplicitFlow(configuration: OpenIdConfiguration): boolean {\n    return this.isCurrentFlowImplicitFlowWithAccessToken(configuration) || this.isCurrentFlowImplicitFlowWithoutAccessToken(configuration);\n  }\n\n  isCurrentFlowCodeFlowWithRefreshTokens(configuration: OpenIdConfiguration): boolean {\n    const { useRefreshToken } = configuration;\n\n    return this.isCurrentFlowCodeFlow(configuration) && useRefreshToken;\n  }\n\n  isCurrentFlowImplicitFlowWithAccessToken(configuration: OpenIdConfiguration): boolean {\n    return this.currentFlowIs('id_token token', configuration);\n  }\n\n  currentFlowIs(flowTypes: string[] | string, configuration: OpenIdConfiguration): boolean {\n    const { responseType } = configuration;\n\n    if (Array.isArray(flowTypes)) {\n      return flowTypes.some((x) => responseType === x);\n    }\n\n    return responseType === flowTypes;\n  }\n\n  private isCurrentFlowImplicitFlowWithoutAccessToken(configuration: OpenIdConfiguration): boolean {\n    return this.currentFlowIs('id_token', configuration);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { from, Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { LoggerService } from '../logging/logger.service';\nimport { CryptoService } from '../utils/crypto/crypto.service';\n\n@Injectable({ providedIn: 'root' })\nexport class JwtWindowCryptoService {\n  constructor(private readonly cryptoService: CryptoService, private logService: LoggerService) {}\n\n  generateCodeChallenge(codeVerifier: string): Observable<string> {\n    return this.calcHash(codeVerifier).pipe(map((challengeRaw: string) => this.base64UrlEncode(challengeRaw)));\n  }\n\n  generateAtHash(accessToken: string, algorithm: string): Observable<string> {\n    return this.calcHash(accessToken, algorithm).pipe(\n      map((tokenHash) => {\n        let substr: string = tokenHash.substr(0, tokenHash.length / 2);\n        const tokenHashBase64: string = btoa(substr);\n\n        return tokenHashBase64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\n      })\n    );\n  }\n\n  private calcHash(valueToHash: string, algorithm = 'SHA-256'): Observable<string> {\n    const msgBuffer: Uint8Array = new TextEncoder().encode(valueToHash);\n    return from(this.cryptoService.getCrypto().subtle.digest(algorithm, msgBuffer)).pipe(\n      map((hashBuffer: ArrayBuffer) => {\n        const hashArray: number[] = Array.from(new Uint8Array(hashBuffer));\n\n        return this.toHashString(hashArray);\n      })\n    );\n  }\n\n  private toHashString(byteArray: number[]): string {\n    let result = '';\n\n    for (let e of byteArray) {\n      result += String.fromCharCode(e);\n    }\n\n    return result;\n  }\n\n  private base64UrlEncode(str): string {\n    const base64: string = btoa(str);\n\n    return base64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '');\n  }\n}\n","import { HttpParams } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { AuthOptions } from '../../auth-options';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { FlowsDataService } from '../../flows/flows-data.service';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { JwtWindowCryptoService } from '../../validation/jwt-window-crypto.service';\nimport { FlowHelper } from '../flowHelper/flow-helper.service';\nimport { UriEncoder } from './uri-encoder';\n\nconst CALLBACK_PARAMS_TO_CHECK = ['code', 'state', 'token', 'id_token'];\nconst AUTH0_ENDPOINT = 'auth0.com';\n\n@Injectable({ providedIn: 'root' })\nexport class UrlService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly flowHelper: FlowHelper,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly jwtWindowCryptoService: JwtWindowCryptoService\n  ) {}\n\n  getUrlParameter(urlToCheck: string, name: string): string {\n    if (!urlToCheck) {\n      return '';\n    }\n\n    if (!name) {\n      return '';\n    }\n\n    name = name.replace(/[[]/, '\\\\[').replace(/[\\]]/, '\\\\]');\n    const regex = new RegExp('[\\\\?&#]' + name + '=([^&#]*)');\n    const results = regex.exec(urlToCheck);\n\n    return results === null ? '' : decodeURIComponent(results[1]);\n  }\n\n  isCallbackFromSts(currentUrl: string): boolean {\n    return CALLBACK_PARAMS_TO_CHECK.some((x) => !!this.getUrlParameter(currentUrl, x));\n  }\n\n  getRefreshSessionSilentRenewUrl(\n    config: OpenIdConfiguration,\n    customParams?: { [key: string]: string | number | boolean }\n  ): Observable<string> {\n    if (this.flowHelper.isCurrentFlowCodeFlow(config)) {\n      return this.createUrlCodeFlowWithSilentRenew(config, customParams);\n    }\n\n    return of(this.createUrlImplicitFlowWithSilentRenew(config, customParams) || '');\n  }\n\n  getAuthorizeParUrl(requestUri: string, configuration: OpenIdConfiguration): string {\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (!authWellKnownEndPoints) {\n      this.loggerService.logError(configuration, 'authWellKnownEndpoints is undefined');\n\n      return null;\n    }\n\n    const authorizationEndpoint = authWellKnownEndPoints.authorizationEndpoint;\n\n    if (!authorizationEndpoint) {\n      this.loggerService.logError(\n        configuration,\n        `Can not create an authorize URL when authorizationEndpoint is '${authorizationEndpoint}'`\n      );\n\n      return null;\n    }\n\n    const { clientId } = configuration;\n\n    if (!clientId) {\n      this.loggerService.logError(configuration, `getAuthorizeParUrl could not add clientId because it was: `, clientId);\n\n      return null;\n    }\n\n    const urlParts = authorizationEndpoint.split('?');\n    const authorizationUrl = urlParts[0];\n    const existingParams = urlParts[1];\n    let params = this.createHttpParams(existingParams);\n\n    params = params.set('request_uri', requestUri);\n    params = params.append('client_id', clientId);\n\n    return `${authorizationUrl}?${params}`;\n  }\n\n  getAuthorizeUrl(config: OpenIdConfiguration, authOptions?: AuthOptions): Observable<string> {\n    if (this.flowHelper.isCurrentFlowCodeFlow(config)) {\n      return this.createUrlCodeFlowAuthorize(config, authOptions);\n    }\n\n    return of(this.createUrlImplicitFlowAuthorize(config, authOptions) || '');\n  }\n\n  getEndSessionEndpoint(configuration: OpenIdConfiguration): { url: string; existingParams: string } {\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n    const endSessionEndpoint = authWellKnownEndPoints?.endSessionEndpoint;\n\n    if (!endSessionEndpoint) {\n      return {\n        url: '',\n        existingParams: '',\n      };\n    }\n\n    const urlParts = endSessionEndpoint.split('?');\n    const url = urlParts[0];\n    const existingParams = urlParts[1] ?? '';\n\n    return {\n      url,\n      existingParams,\n    };\n  }\n\n  getEndSessionUrl(configuration: OpenIdConfiguration, customParams?: { [p: string]: string | number | boolean }): string | null {\n    const idToken = this.storagePersistenceService.getIdToken(configuration);\n    const { customParamsEndSessionRequest } = configuration;\n    const mergedParams = { ...customParamsEndSessionRequest, ...customParams };\n\n    return this.createEndSessionUrl(idToken, configuration, mergedParams);\n  }\n\n  createRevocationEndpointBodyAccessToken(token: any, configuration: OpenIdConfiguration): string {\n    const clientId = this.getClientId(configuration);\n\n    if (!clientId) {\n      return null;\n    }\n\n    let params = this.createHttpParams();\n\n    params = params.set('client_id', clientId);\n    params = params.set('token', token);\n    params = params.set('token_type_hint', 'access_token');\n\n    return params.toString();\n  }\n\n  createRevocationEndpointBodyRefreshToken(token: any, configuration: OpenIdConfiguration): string {\n    const clientId = this.getClientId(configuration);\n\n    if (!clientId) {\n      return null;\n    }\n\n    let params = this.createHttpParams();\n\n    params = params.set('client_id', clientId);\n    params = params.set('token', token);\n    params = params.set('token_type_hint', 'refresh_token');\n\n    return params.toString();\n  }\n\n  getRevocationEndpointUrl(configuration: OpenIdConfiguration): string {\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n    const revocationEndpoint = authWellKnownEndPoints?.revocationEndpoint;\n\n    if (!revocationEndpoint) {\n      return null;\n    }\n\n    const urlParts = revocationEndpoint.split('?');\n\n    return urlParts[0];\n  }\n\n  createBodyForCodeFlowCodeRequest(\n    code: string,\n    configuration: OpenIdConfiguration,\n    customTokenParams?: { [p: string]: string | number | boolean }\n  ): string {\n    const clientId = this.getClientId(configuration);\n\n    if (!clientId) {\n      return null;\n    }\n\n    let params = this.createHttpParams();\n\n    params = params.set('grant_type', 'authorization_code');\n    params = params.set('client_id', clientId);\n\n    if (!configuration.disablePkce) {\n      const codeVerifier = this.flowsDataService.getCodeVerifier(configuration);\n\n      if (!codeVerifier) {\n        this.loggerService.logError(configuration, `CodeVerifier is not set `, codeVerifier);\n\n        return null;\n      }\n\n      params = params.set('code_verifier', codeVerifier);\n    }\n\n    params = params.set('code', code);\n\n    if (customTokenParams) {\n      params = this.appendCustomParams({ ...customTokenParams }, params);\n    }\n\n    const silentRenewUrl = this.getSilentRenewUrl(configuration);\n\n    if (this.flowsDataService.isSilentRenewRunning(configuration) && silentRenewUrl) {\n      params = params.set('redirect_uri', silentRenewUrl);\n\n      return params.toString();\n    }\n\n    const redirectUrl = this.getRedirectUrl(configuration);\n\n    if (!redirectUrl) {\n      return null;\n    }\n\n    params = params.set('redirect_uri', redirectUrl);\n\n    return params.toString();\n  }\n\n  createBodyForCodeFlowRefreshTokensRequest(\n    refreshToken: string,\n    configuration: OpenIdConfiguration,\n    customParamsRefresh?: { [key: string]: string | number | boolean }\n  ): string {\n    const clientId = this.getClientId(configuration);\n\n    if (!clientId) {\n      return null;\n    }\n\n    let params = this.createHttpParams();\n\n    params = params.set('grant_type', 'refresh_token');\n    params = params.set('client_id', clientId);\n    params = params.set('refresh_token', refreshToken);\n\n    if (customParamsRefresh) {\n      params = this.appendCustomParams({ ...customParamsRefresh }, params);\n    }\n\n    return params.toString();\n  }\n\n  createBodyForParCodeFlowRequest(\n    configuration: OpenIdConfiguration,\n    customParamsRequest?: { [key: string]: string | number | boolean }\n  ): Observable<string> {\n    const redirectUrl = this.getRedirectUrl(configuration);\n\n    if (!redirectUrl) {\n      return of(null);\n    }\n\n    const state = this.flowsDataService.getExistingOrCreateAuthStateControl(configuration);\n    const nonce = this.flowsDataService.createNonce(configuration);\n\n    this.loggerService.logDebug(configuration, 'Authorize created. adding myautostate: ' + state);\n\n    // code_challenge with \"S256\"\n    const codeVerifier = this.flowsDataService.createCodeVerifier(configuration);\n\n    return this.jwtWindowCryptoService.generateCodeChallenge(codeVerifier).pipe(\n      map((codeChallenge: string) => {\n        const { clientId, responseType, scope, hdParam, customParamsAuthRequest } = configuration;\n        let params = this.createHttpParams('');\n\n        params = params.set('client_id', clientId);\n        params = params.append('redirect_uri', redirectUrl);\n        params = params.append('response_type', responseType);\n        params = params.append('scope', scope);\n        params = params.append('nonce', nonce);\n        params = params.append('state', state);\n        params = params.append('code_challenge', codeChallenge);\n        params = params.append('code_challenge_method', 'S256');\n\n        if (hdParam) {\n          params = params.append('hd', hdParam);\n        }\n\n        if (customParamsAuthRequest) {\n          params = this.appendCustomParams({ ...customParamsAuthRequest }, params);\n        }\n\n        if (customParamsRequest) {\n          params = this.appendCustomParams({ ...customParamsRequest }, params);\n        }\n\n        return params.toString();\n      })\n    );\n  }\n\n  getPostLogoutRedirectUrl(configuration: OpenIdConfiguration): string {\n    const { postLogoutRedirectUri } = configuration;\n\n    if (!postLogoutRedirectUri) {\n      this.loggerService.logError(configuration, `could not get postLogoutRedirectUri, was: `, postLogoutRedirectUri);\n\n      return null;\n    }\n\n    return postLogoutRedirectUri;\n  }\n\n  private createEndSessionUrl(\n    idTokenHint: string,\n    configuration: OpenIdConfiguration,\n    customParamsEndSession?: { [p: string]: string | number | boolean }\n  ): string | null {\n    // Auth0 needs a special logout url\n    // See https://auth0.com/docs/api/authentication#logout\n\n    if (this.isAuth0Endpoint(configuration)) {\n      return this.composeAuth0Endpoint(configuration);\n    }\n\n    const { url, existingParams } = this.getEndSessionEndpoint(configuration);\n\n    if (!url) {\n      return null;\n    }\n\n    let params = this.createHttpParams(existingParams);\n\n    if (!!idTokenHint) {\n      params = params.set('id_token_hint', idTokenHint);\n    }\n\n    const postLogoutRedirectUri = this.getPostLogoutRedirectUrl(configuration);\n\n    if (postLogoutRedirectUri) {\n      params = params.append('post_logout_redirect_uri', postLogoutRedirectUri);\n    }\n\n    if (customParamsEndSession) {\n      params = this.appendCustomParams({ ...customParamsEndSession }, params);\n    }\n\n    return `${url}?${params}`;\n  }\n\n  private createAuthorizeUrl(\n    codeChallenge: string,\n    redirectUrl: string,\n    nonce: string,\n    state: string,\n    configuration: OpenIdConfiguration,\n    prompt?: string,\n    customRequestParams?: { [key: string]: string | number | boolean }\n  ): string {\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n    const authorizationEndpoint = authWellKnownEndPoints?.authorizationEndpoint;\n\n    if (!authorizationEndpoint) {\n      this.loggerService.logError(\n        configuration,\n        `Can not create an authorize URL when authorizationEndpoint is '${authorizationEndpoint}'`\n      );\n\n      return null;\n    }\n\n    const { clientId, responseType, scope, hdParam, customParamsAuthRequest } = configuration;\n\n    if (!clientId) {\n      this.loggerService.logError(configuration, `createAuthorizeUrl could not add clientId because it was: `, clientId);\n\n      return null;\n    }\n\n    if (!responseType) {\n      this.loggerService.logError(configuration, `createAuthorizeUrl could not add responseType because it was: `, responseType);\n\n      return null;\n    }\n\n    if (!scope) {\n      this.loggerService.logError(configuration, `createAuthorizeUrl could not add scope because it was: `, scope);\n\n      return null;\n    }\n\n    const urlParts = authorizationEndpoint.split('?');\n    const authorizationUrl = urlParts[0];\n    const existingParams = urlParts[1];\n    let params = this.createHttpParams(existingParams);\n\n    params = params.set('client_id', clientId);\n    params = params.append('redirect_uri', redirectUrl);\n    params = params.append('response_type', responseType);\n    params = params.append('scope', scope);\n    params = params.append('nonce', nonce);\n    params = params.append('state', state);\n\n    if (this.flowHelper.isCurrentFlowCodeFlow(configuration) && codeChallenge !== null) {\n      params = params.append('code_challenge', codeChallenge);\n      params = params.append('code_challenge_method', 'S256');\n    }\n\n    const mergedParams = { ...customParamsAuthRequest, ...customRequestParams };\n\n    if (Object.keys(mergedParams).length > 0) {\n      params = this.appendCustomParams({ ...mergedParams }, params);\n    }\n\n    if (prompt) {\n      params = this.overWriteParam(params, 'prompt', prompt);\n    }\n\n    if (hdParam) {\n      params = params.append('hd', hdParam);\n    }\n\n    return `${authorizationUrl}?${params}`;\n  }\n\n  private createUrlImplicitFlowWithSilentRenew(\n    configuration: OpenIdConfiguration,\n    customParams?: { [key: string]: string | number | boolean }\n  ): string {\n    const state = this.flowsDataService.getExistingOrCreateAuthStateControl(configuration);\n    const nonce = this.flowsDataService.createNonce(configuration);\n    const silentRenewUrl = this.getSilentRenewUrl(configuration);\n\n    if (!silentRenewUrl) {\n      return null;\n    }\n\n    this.loggerService.logDebug(configuration, 'RefreshSession created. adding myautostate: ', state);\n\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (authWellKnownEndPoints) {\n      return this.createAuthorizeUrl('', silentRenewUrl, nonce, state, configuration, 'none', customParams);\n    }\n\n    this.loggerService.logError(configuration, 'authWellKnownEndpoints is undefined');\n\n    return null;\n  }\n\n  private createUrlCodeFlowWithSilentRenew(\n    configuration: OpenIdConfiguration,\n    customParams?: { [key: string]: string | number | boolean }\n  ): Observable<string> {\n    const state = this.flowsDataService.getExistingOrCreateAuthStateControl(configuration);\n    const nonce = this.flowsDataService.createNonce(configuration);\n\n    this.loggerService.logDebug(configuration, 'RefreshSession created. adding myautostate: ' + state);\n\n    // code_challenge with \"S256\"\n    const codeVerifier = this.flowsDataService.createCodeVerifier(configuration);\n\n    return this.jwtWindowCryptoService.generateCodeChallenge(codeVerifier).pipe(\n      map((codeChallenge: string) => {\n        const silentRenewUrl = this.getSilentRenewUrl(configuration);\n\n        if (!silentRenewUrl) {\n          return '';\n        }\n\n        const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n        if (authWellKnownEndPoints) {\n          return this.createAuthorizeUrl(codeChallenge, silentRenewUrl, nonce, state, configuration, 'none', customParams);\n        }\n\n        this.loggerService.logWarning(configuration, 'authWellKnownEndpoints is undefined');\n\n        return null;\n      })\n    );\n  }\n\n  private createUrlImplicitFlowAuthorize(configuration: OpenIdConfiguration, authOptions?: AuthOptions): string {\n    const state = this.flowsDataService.getExistingOrCreateAuthStateControl(configuration);\n    const nonce = this.flowsDataService.createNonce(configuration);\n\n    this.loggerService.logDebug(configuration, 'Authorize created. adding myautostate: ' + state);\n\n    const redirectUrl = this.getRedirectUrl(configuration, authOptions);\n\n    if (!redirectUrl) {\n      return null;\n    }\n\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (authWellKnownEndPoints) {\n      const { customParams } = authOptions || {};\n\n      return this.createAuthorizeUrl('', redirectUrl, nonce, state, configuration, null, customParams);\n    }\n\n    this.loggerService.logError(configuration, 'authWellKnownEndpoints is undefined');\n\n    return null;\n  }\n\n  private createUrlCodeFlowAuthorize(config: OpenIdConfiguration, authOptions?: AuthOptions): Observable<string> {\n    const state = this.flowsDataService.getExistingOrCreateAuthStateControl(config);\n    const nonce = this.flowsDataService.createNonce(config);\n\n    this.loggerService.logDebug(config, 'Authorize created. adding myautostate: ' + state);\n\n    const redirectUrl = this.getRedirectUrl(config, authOptions);\n\n    if (!redirectUrl) {\n      return of(null);\n    }\n\n    return this.getCodeChallenge(config).pipe(\n      map((codeChallenge: string) => {\n        const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', config);\n\n        if (authWellKnownEndPoints) {\n          const { customParams } = authOptions || {};\n\n          return this.createAuthorizeUrl(codeChallenge, redirectUrl, nonce, state, config, null, customParams);\n        }\n\n        this.loggerService.logError(config, 'authWellKnownEndpoints is undefined');\n\n        return '';\n      })\n    );\n  }\n\n  private getCodeChallenge(config: OpenIdConfiguration): Observable<string> {\n    if (config.disablePkce) {\n      return of(null);\n    }\n\n    // code_challenge with \"S256\"\n    const codeVerifier = this.flowsDataService.createCodeVerifier(config);\n\n    return this.jwtWindowCryptoService.generateCodeChallenge(codeVerifier);\n  }\n\n  private getRedirectUrl(configuration: OpenIdConfiguration, authOptions?: AuthOptions): string {\n    let { redirectUrl } = configuration;\n\n    if (authOptions?.redirectUrl) {\n      // override by redirectUrl from authOptions\n      redirectUrl = authOptions.redirectUrl;\n    }\n\n    if (!redirectUrl) {\n      this.loggerService.logError(configuration, `could not get redirectUrl, was: `, redirectUrl);\n\n      return null;\n    }\n\n    return redirectUrl;\n  }\n\n  private getSilentRenewUrl(configuration: OpenIdConfiguration): string {\n    const { silentRenewUrl } = configuration;\n\n    if (!silentRenewUrl) {\n      this.loggerService.logError(configuration, `could not get silentRenewUrl, was: `, silentRenewUrl);\n\n      return null;\n    }\n\n    return silentRenewUrl;\n  }\n\n  private getClientId(configuration: OpenIdConfiguration): string {\n    const { clientId } = configuration;\n\n    if (!clientId) {\n      this.loggerService.logError(configuration, `could not get clientId, was: `, clientId);\n\n      return null;\n    }\n\n    return clientId;\n  }\n\n  private appendCustomParams(customParams: { [key: string]: string | number | boolean }, params: HttpParams): HttpParams {\n    for (const [key, value] of Object.entries({ ...customParams })) {\n      params = params.append(key, value.toString());\n    }\n\n    return params;\n  }\n\n  private overWriteParam(params: HttpParams, key: string, value: string | number | boolean): HttpParams {\n    return params.set(key, value);\n  }\n\n  private createHttpParams(existingParams?: string): HttpParams {\n    existingParams = existingParams ?? '';\n\n    return new HttpParams({\n      fromString: existingParams,\n      encoder: new UriEncoder(),\n    });\n  }\n\n  private isAuth0Endpoint(configuration: OpenIdConfiguration): boolean {\n    const { authority } = configuration;\n\n    if (!authority) {\n      return false;\n    }\n\n    return authority.endsWith(AUTH0_ENDPOINT);\n  }\n\n  private composeAuth0Endpoint(configuration: OpenIdConfiguration): string {\n    // format: https://YOUR_DOMAIN/v2/logout?client_id=YOUR_CLIENT_ID&returnTo=LOGOUT_URL\n    const { authority, clientId } = configuration;\n    const postLogoutRedirectUrl = this.getPostLogoutRedirectUrl(configuration);\n\n    return `${authority}/v2/logout?client_id=${clientId}&returnTo=${postLogoutRedirectUrl}`;\n  }\n}\n","export function getVerifyAlg(alg: string): RsaHashedImportParams | EcdsaParams {\n  switch (alg.charAt(0)) {\n    case 'R':\n      return {\n        name: 'RSASSA-PKCS1-v1_5',\n        hash: 'SHA-256',\n      };\n    case 'E':\n      if (alg.includes('256')) {\n        return {\n          name: 'ECDSA',\n          hash: 'SHA-256',\n        };\n      } else if (alg.includes('384')) {\n        return {\n          name: 'ECDSA',\n          hash: 'SHA-384',\n        };\n      } else {\n        return null;\n      }\n    default:\n      return null;\n  }\n}\n\nexport function alg2kty(alg: string): string {\n  switch (alg.charAt(0)) {\n    case 'R':\n      return 'RSA';\n\n    case 'E':\n      return 'EC';\n\n    default:\n      throw new Error('Cannot infer kty from alg: ' + alg);\n  }\n}\n\nexport function getImportAlg(alg: string): RsaHashedImportParams | EcKeyImportParams {\n  switch (alg.charAt(0)) {\n    case 'R':\n      if (alg.includes('256')) {\n        return {\n          name: 'RSASSA-PKCS1-v1_5',\n          hash: 'SHA-256',\n        };\n      } else if (alg.includes('384')) {\n        return {\n          name: 'RSASSA-PKCS1-v1_5',\n          hash: 'SHA-384',\n        };\n      } else if (alg.includes('512')) {\n        return {\n          name: 'RSASSA-PKCS1-v1_5',\n          hash: 'SHA-512',\n        };\n      } else {\n        return null;\n      }\n    case 'E':\n      if (alg.includes('256')) {\n        return {\n          name: 'ECDSA',\n          namedCurve: 'P-256',\n        };\n      } else if (alg.includes('384')) {\n        return {\n          name: 'ECDSA',\n          namedCurve: 'P-384',\n        };\n      } else {\n        return null;\n      }\n    default:\n      return null;\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\n\nconst PARTS_OF_TOKEN = 3;\n\n@Injectable({ providedIn: 'root' })\nexport class TokenHelperService {\n  constructor(private readonly loggerService: LoggerService, @Inject(DOCUMENT) private readonly document: Document) {}\n\n  getTokenExpirationDate(dataIdToken: any): Date {\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'exp')) {\n      return new Date(new Date().toUTCString());\n    }\n\n    const date = new Date(0); // The 0 here is the key, which sets the date to the epoch\n\n    date.setUTCSeconds(dataIdToken.exp);\n\n    return date;\n  }\n\n  getSigningInputFromToken(token: any, encoded: boolean, configuration: OpenIdConfiguration): string {\n    if (!this.tokenIsValid(token, configuration)) {\n      return '';\n    }\n\n    const header: string = this.getHeaderFromToken(token, encoded, configuration);\n    const payload: string = this.getPayloadFromToken(token, encoded, configuration);\n\n    return [header, payload].join('.');\n  }\n\n  getHeaderFromToken(token: any, encoded: boolean, configuration: OpenIdConfiguration): any {\n    if (!this.tokenIsValid(token, configuration)) {\n      return {};\n    }\n\n    return this.getPartOfToken(token, 0, encoded);\n  }\n\n  getPayloadFromToken(token: any, encoded: boolean, configuration: OpenIdConfiguration): any {\n    if (!this.tokenIsValid(token, configuration)) {\n      return {};\n    }\n\n    return this.getPartOfToken(token, 1, encoded);\n  }\n\n  getSignatureFromToken(token: any, encoded: boolean, configuration: OpenIdConfiguration): any {\n    if (!this.tokenIsValid(token, configuration)) {\n      return {};\n    }\n\n    return this.getPartOfToken(token, 2, encoded);\n  }\n\n  private getPartOfToken(token: string, index: number, encoded: boolean): any {\n    const partOfToken = this.extractPartOfToken(token, index);\n\n    if (encoded) {\n      return partOfToken;\n    }\n\n    const result = this.urlBase64Decode(partOfToken);\n\n    return JSON.parse(result);\n  }\n\n  private urlBase64Decode(str: string): string {\n    let output = str.replace(/-/g, '+').replace(/_/g, '/');\n\n    switch (output.length % 4) {\n      case 0:\n        break;\n      case 2:\n        output += '==';\n        break;\n      case 3:\n        output += '=';\n        break;\n      default:\n        throw Error('Illegal base64url string!');\n    }\n\n    const decoded =\n      typeof this.document.defaultView !== 'undefined'\n        ? this.document.defaultView.atob(output)\n        : Buffer.from(output, 'base64').toString('binary');\n\n    try {\n      // Going backwards: from byte stream, to percent-encoding, to original string.\n      return decodeURIComponent(\n        decoded\n          .split('')\n          .map((c: string) => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))\n          .join('')\n      );\n    } catch (err) {\n      return decoded;\n    }\n  }\n\n  private tokenIsValid(token: string, configuration: OpenIdConfiguration): boolean {\n    if (!token) {\n      this.loggerService.logError(configuration, `token '${token}' is not valid --> token falsy`);\n\n      return false;\n    }\n\n    if (!(token as string).includes('.')) {\n      this.loggerService.logError(configuration, `token '${token}' is not valid --> no dots included`);\n\n      return false;\n    }\n\n    const parts = token.split('.');\n\n    if (parts.length !== PARTS_OF_TOKEN) {\n      this.loggerService.logError(configuration, `token '${token}' is not valid --> token has to have exactly ${PARTS_OF_TOKEN - 1} dots`);\n\n      return false;\n    }\n\n    return true;\n  }\n\n  private extractPartOfToken(token: string, index: number): string {\n    return token.split('.')[index];\n  }\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class JwkExtractor {\n  static InvalidArgumentError = {\n    name: JwkExtractor.buildErrorName('InvalidArgumentError'),\n    message: 'Array of keys was empty. Unable to extract',\n  };\n\n  static NoMatchingKeysError = {\n    name: JwkExtractor.buildErrorName('NoMatchingKeysError'),\n    message: 'No key found matching the spec',\n  };\n\n  static SeveralMatchingKeysError = {\n    name: JwkExtractor.buildErrorName('SeveralMatchingKeysError'),\n    message: 'More than one key found. Please use spec to filter',\n  };\n\n  private static buildErrorName(name: string): string {\n    return JwkExtractor.name + ': ' + name;\n  }\n\n  extractJwk(keys: JsonWebKey[], spec?: { kid?: string; use?: string; kty?: string }, throwOnEmpty = true): JsonWebKey[] {\n    if (0 === keys.length) {\n      throw JwkExtractor.InvalidArgumentError;\n    }\n\n    let foundKeys = keys\n      .filter((k) => (spec?.kid ? k['kid'] === spec.kid : true))\n      .filter((k) => (spec?.use ? k['use'] === spec.use : true))\n      .filter((k) => (spec?.kty ? k['kty'] === spec.kty : true));\n\n    if (foundKeys.length === 0 && throwOnEmpty) {\n      throw JwkExtractor.NoMatchingKeysError;\n    }\n\n    if (foundKeys.length > 1 && (null === spec || undefined === spec)) {\n      throw JwkExtractor.SeveralMatchingKeysError;\n    }\n\n    return foundKeys;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { CryptoService } from '../utils/crypto/crypto.service';\n\n@Injectable({ providedIn: 'root' })\nexport class JwkWindowCryptoService {\n  constructor(private readonly cryptoService: CryptoService) {}\n\n  importVerificationKey(\n    key: JsonWebKey,\n    algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm\n  ): Promise<CryptoKey> {\n    return this.cryptoService.getCrypto().subtle.importKey('jwk', key, algorithm, false, ['verify']);\n  }\n\n  verifyKey(\n    verifyAlgorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,\n    cryptoKey: CryptoKey,\n    signature: BufferSource,\n    signingInput: string\n  ): Promise<boolean> {\n    return this.cryptoService.getCrypto().subtle.verify(verifyAlgorithm, cryptoKey, signature, new TextEncoder().encode(signingInput));\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { base64url } from 'rfc4648';\nimport { from, Observable, of } from 'rxjs';\nimport { map, mergeMap, tap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { JwkExtractor } from '../extractors/jwk.extractor';\nimport { LoggerService } from '../logging/logger.service';\nimport { TokenHelperService } from '../utils/tokenHelper/token-helper.service';\nimport { JwkWindowCryptoService } from './jwk-window-crypto.service';\nimport { JwtWindowCryptoService } from './jwt-window-crypto.service';\nimport { alg2kty, getImportAlg, getVerifyAlg } from './token-validation.helper';\n\n// http://openid.net/specs/openid-connect-implicit-1_0.html\n\n// id_token\n// id_token C1: The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery)\n// MUST exactly match the value of the iss (issuer) Claim.\n//\n// id_token C2: The Client MUST validate that the aud (audience) Claim contains its client_id value registered at the Issuer identified\n// by the iss (issuer) Claim as an audience.The ID Token MUST be rejected if the ID Token does not list the Client as a valid audience,\n// or if it contains additional audiences not trusted by the Client.\n//\n// id_token C3: If the ID Token contains multiple audiences, the Client SHOULD verify that an azp Claim is present.\n//\n// id_token C4: If an azp (authorized party) Claim is present, the Client SHOULD verify that its client_id is the Claim Value.\n//\n// id_token C5: The Client MUST validate the signature of the ID Token according to JWS [JWS] using the algorithm specified in the\n// alg Header Parameter of the JOSE Header.The Client MUST use the keys provided by the Issuer.\n//\n// id_token C6: The alg value SHOULD be RS256. Validation of tokens using other signing algorithms is described in the OpenID Connect\n// Core 1.0\n// [OpenID.Core] specification.\n//\n// id_token C7: The current time MUST be before the time represented by the exp Claim (possibly allowing for some small leeway to account\n// for clock skew).\n//\n// id_token C8: The iat Claim can be used to reject tokens that were issued too far away from the current time,\n// limiting the amount of time that nonces need to be stored to prevent attacks.The acceptable range is Client specific.\n//\n// id_token C9: The value of the nonce Claim MUST be checked to verify that it is the same value as the one that was sent\n// in the Authentication Request.The Client SHOULD check the nonce value for replay attacks.The precise method for detecting replay attacks\n// is Client specific.\n//\n// id_token C10: If the acr Claim was requested, the Client SHOULD check that the asserted Claim Value is appropriate.\n// The meaning and processing of acr Claim Values is out of scope for this document.\n//\n// id_token C11: When a max_age request is made, the Client SHOULD check the auth_time Claim value and request re- authentication\n// if it determines too much time has elapsed since the last End- User authentication.\n\n// Access Token Validation\n// access_token C1: Hash the octets of the ASCII representation of the access_token with the hash algorithm specified in JWA[JWA]\n// for the alg Header Parameter of the ID Token's JOSE Header. For instance, if the alg is RS256, the hash algorithm used is SHA-256.\n// access_token C2: Take the left- most half of the hash and base64url- encode it.\n// access_token C3: The value of at_hash in the ID Token MUST match the value produced in the previous step if at_hash is present\n// in the ID Token.\n\n@Injectable({ providedIn: 'root' })\nexport class TokenValidationService {\n  static refreshTokenNoncePlaceholder = '--RefreshToken--';\n\n  keyAlgorithms: string[] = ['HS256', 'HS384', 'HS512', 'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'PS256', 'PS384', 'PS512'];\n\n  constructor(\n    private readonly tokenHelperService: TokenHelperService,\n    private readonly loggerService: LoggerService,\n    private readonly jwkExtractor: JwkExtractor,\n    private readonly jwkWindowCryptoService: JwkWindowCryptoService,\n    private readonly jwtWindowCryptoService: JwtWindowCryptoService,\n    @Inject(DOCUMENT) private readonly document: Document\n  ) {}\n\n  // id_token C7: The current time MUST be before the time represented by the exp Claim\n  // (possibly allowing for some small leeway to account for clock skew).\n  hasIdTokenExpired(token: string, configuration: OpenIdConfiguration, offsetSeconds?: number): boolean {\n    const decoded = this.tokenHelperService.getPayloadFromToken(token, false, configuration);\n\n    return !this.validateIdTokenExpNotExpired(decoded, configuration, offsetSeconds);\n  }\n\n  // id_token C7: The current time MUST be before the time represented by the exp Claim\n  // (possibly allowing for some small leeway to account for clock skew).\n  validateIdTokenExpNotExpired(decodedIdToken: string, configuration: OpenIdConfiguration, offsetSeconds?: number): boolean {\n    const tokenExpirationDate = this.tokenHelperService.getTokenExpirationDate(decodedIdToken);\n\n    offsetSeconds = offsetSeconds || 0;\n\n    if (!tokenExpirationDate) {\n      return false;\n    }\n\n    const tokenExpirationValue = tokenExpirationDate.valueOf();\n    const nowWithOffset = this.calculateNowWithOffset(offsetSeconds);\n    const tokenNotExpired = tokenExpirationValue > nowWithOffset;\n\n    this.loggerService.logDebug(\n      configuration,\n      `Has idToken expired: ${!tokenNotExpired} --> expires in ${this.millisToMinutesAndSeconds(\n        tokenExpirationValue - nowWithOffset\n      )} , ${new Date(tokenExpirationValue).toLocaleTimeString()} > ${new Date(nowWithOffset).toLocaleTimeString()}`\n    );\n\n    return tokenNotExpired;\n  }\n\n  validateAccessTokenNotExpired(accessTokenExpiresAt: Date, configuration: OpenIdConfiguration, offsetSeconds?: number): boolean {\n    // value is optional, so if it does not exist, then it has not expired\n    if (!accessTokenExpiresAt) {\n      return true;\n    }\n\n    offsetSeconds = offsetSeconds || 0;\n    const accessTokenExpirationValue = accessTokenExpiresAt.valueOf();\n    const nowWithOffset = this.calculateNowWithOffset(offsetSeconds);\n    const tokenNotExpired = accessTokenExpirationValue > nowWithOffset;\n\n    this.loggerService.logDebug(\n      configuration,\n      `Has accessToken expired: ${!tokenNotExpired} --> expires in ${this.millisToMinutesAndSeconds(\n        accessTokenExpirationValue - nowWithOffset\n      )} , ${new Date(accessTokenExpirationValue).toLocaleTimeString()} > ${new Date(nowWithOffset).toLocaleTimeString()}`\n    );\n\n    return tokenNotExpired;\n  }\n\n  // iss\n  // REQUIRED. Issuer Identifier for the Issuer of the response.The iss value is a case-sensitive URL using the\n  // https scheme that contains scheme, host,\n  // and optionally, port number and path components and no query or fragment components.\n  //\n  // sub\n  // REQUIRED. Subject Identifier.Locally unique and never reassigned identifier within the Issuer for the End- User,\n  // which is intended to be consumed by the Client, e.g., 24400320 or AItOawmwtWwcT0k51BayewNvutrJUqsvl6qs7A4.\n  // It MUST NOT exceed 255 ASCII characters in length.The sub value is a case-sensitive string.\n  //\n  // aud\n  // REQUIRED. Audience(s) that this ID Token is intended for. It MUST contain the OAuth 2.0 client_id of the Relying Party as an\n  // audience value.\n  // It MAY also contain identifiers for other audiences.In the general case, the aud value is an array of case-sensitive strings.\n  // In the common special case when there is one audience, the aud value MAY be a single case-sensitive string.\n  //\n  // exp\n  // REQUIRED. Expiration time on or after which the ID Token MUST NOT be accepted for processing.\n  // The processing of this parameter requires that the current date/ time MUST be before the expiration date/ time listed in the value.\n  // Implementers MAY provide for some small leeway, usually no more than a few minutes, to account for clock skew.\n  // Its value is a JSON [RFC7159] number representing the number of seconds from 1970- 01 - 01T00: 00:00Z as measured in UTC until\n  // the date/ time.\n  // See RFC 3339 [RFC3339] for details regarding date/ times in general and UTC in particular.\n  //\n  // iat\n  // REQUIRED. Time at which the JWT was issued. Its value is a JSON number representing the number of seconds from\n  // 1970- 01 - 01T00: 00: 00Z as measured\n  // in UTC until the date/ time.\n  validateRequiredIdToken(dataIdToken: any, configuration: OpenIdConfiguration): boolean {\n    let validated = true;\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'iss')) {\n      validated = false;\n      this.loggerService.logWarning(configuration, 'iss is missing, this is required in the id_token');\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'sub')) {\n      validated = false;\n      this.loggerService.logWarning(configuration, 'sub is missing, this is required in the id_token');\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'aud')) {\n      validated = false;\n      this.loggerService.logWarning(configuration, 'aud is missing, this is required in the id_token');\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'exp')) {\n      validated = false;\n      this.loggerService.logWarning(configuration, 'exp is missing, this is required in the id_token');\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'iat')) {\n      validated = false;\n      this.loggerService.logWarning(configuration, 'iat is missing, this is required in the id_token');\n    }\n\n    return validated;\n  }\n\n  // id_token C8: The iat Claim can be used to reject tokens that were issued too far away from the current time,\n  // limiting the amount of time that nonces need to be stored to prevent attacks.The acceptable range is Client specific.\n  validateIdTokenIatMaxOffset(\n    dataIdToken: any,\n    maxOffsetAllowedInSeconds: number,\n    disableIatOffsetValidation: boolean,\n    configuration: OpenIdConfiguration\n  ): boolean {\n    if (disableIatOffsetValidation) {\n      return true;\n    }\n\n    if (!Object.prototype.hasOwnProperty.call(dataIdToken, 'iat')) {\n      return false;\n    }\n\n    const dateTimeIatIdToken = new Date(0); // The 0 here is the key, which sets the date to the epoch\n\n    dateTimeIatIdToken.setUTCSeconds(dataIdToken.iat);\n    maxOffsetAllowedInSeconds = maxOffsetAllowedInSeconds || 0;\n\n    const nowInUtc = new Date(new Date().toUTCString());\n    const diff = nowInUtc.valueOf() - dateTimeIatIdToken.valueOf();\n    const maxOffsetAllowedInMilliseconds = maxOffsetAllowedInSeconds * 1000;\n\n    this.loggerService.logDebug(configuration, `validate id token iat max offset ${diff} < ${maxOffsetAllowedInMilliseconds}`);\n\n    if (diff > 0) {\n      return diff < maxOffsetAllowedInMilliseconds;\n    }\n\n    return -diff < maxOffsetAllowedInMilliseconds;\n  }\n\n  // id_token C9: The value of the nonce Claim MUST be checked to verify that it is the same value as the one\n  // that was sent in the Authentication Request.The Client SHOULD check the nonce value for replay attacks.\n  // The precise method for detecting replay attacks is Client specific.\n\n  // However the nonce claim SHOULD not be present for the refresh_token grant type\n  // https://bitbucket.org/openid/connect/issues/1025/ambiguity-with-how-nonce-is-handled-on\n  // The current spec is ambiguous and KeyCloak does send it.\n  validateIdTokenNonce(dataIdToken: any, localNonce: any, ignoreNonceAfterRefresh: boolean, configuration: OpenIdConfiguration): boolean {\n    const isFromRefreshToken =\n      (dataIdToken.nonce === undefined || ignoreNonceAfterRefresh) && localNonce === TokenValidationService.refreshTokenNoncePlaceholder;\n\n    if (!isFromRefreshToken && dataIdToken.nonce !== localNonce) {\n      this.loggerService.logDebug(\n        configuration,\n        'Validate_id_token_nonce failed, dataIdToken.nonce: ' + dataIdToken.nonce + ' local_nonce:' + localNonce\n      );\n\n      return false;\n    }\n\n    return true;\n  }\n\n  // id_token C1: The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery)\n  // MUST exactly match the value of the iss (issuer) Claim.\n  validateIdTokenIss(dataIdToken: any, authWellKnownEndpointsIssuer: any, configuration: OpenIdConfiguration): boolean {\n    if ((dataIdToken.iss as string) !== (authWellKnownEndpointsIssuer as string)) {\n      this.loggerService.logDebug(\n        configuration,\n        'Validate_id_token_iss failed, dataIdToken.iss: ' +\n          dataIdToken.iss +\n          ' authWellKnownEndpoints issuer:' +\n          authWellKnownEndpointsIssuer\n      );\n\n      return false;\n    }\n\n    return true;\n  }\n\n  // id_token C2: The Client MUST validate that the aud (audience) Claim contains its client_id value registered at the Issuer identified\n  // by the iss (issuer) Claim as an audience.\n  // The ID Token MUST be rejected if the ID Token does not list the Client as a valid audience, or if it contains additional audiences\n  // not trusted by the Client.\n  validateIdTokenAud(dataIdToken: any, aud: any, configuration: OpenIdConfiguration): boolean {\n    if (Array.isArray(dataIdToken.aud)) {\n      const result = dataIdToken.aud.includes(aud);\n\n      if (!result) {\n        this.loggerService.logDebug(\n          configuration,\n          'Validate_id_token_aud array failed, dataIdToken.aud: ' + dataIdToken.aud + ' client_id:' + aud\n        );\n\n        return false;\n      }\n\n      return true;\n    } else if (dataIdToken.aud !== aud) {\n      this.loggerService.logDebug(configuration, 'Validate_id_token_aud failed, dataIdToken.aud: ' + dataIdToken.aud + ' client_id:' + aud);\n\n      return false;\n    }\n\n    return true;\n  }\n\n  validateIdTokenAzpExistsIfMoreThanOneAud(dataIdToken: any): boolean {\n    if (!dataIdToken) {\n      return false;\n    }\n\n    return !(Array.isArray(dataIdToken.aud) && dataIdToken.aud.length > 1 && !dataIdToken.azp);\n  }\n\n  // If an azp (authorized party) Claim is present, the Client SHOULD verify that its client_id is the Claim Value.\n  validateIdTokenAzpValid(dataIdToken: any, clientId: string): boolean {\n    if (!dataIdToken?.azp) {\n      return true;\n    }\n\n    return dataIdToken.azp === clientId;\n  }\n\n  validateStateFromHashCallback(state: any, localState: any, configuration: OpenIdConfiguration): boolean {\n    if ((state as string) !== (localState as string)) {\n      this.loggerService.logDebug(configuration, 'ValidateStateFromHashCallback failed, state: ' + state + ' local_state:' + localState);\n\n      return false;\n    }\n\n    return true;\n  }\n\n  // id_token C5: The Client MUST validate the signature of the ID Token according to JWS [JWS] using the algorithm specified in the alg\n  // Header Parameter of the JOSE Header.The Client MUST use the keys provided by the Issuer.\n  // id_token C6: The alg value SHOULD be RS256. Validation of tokens using other signing algorithms is described in the\n  // OpenID Connect Core 1.0 [OpenID.Core] specification.\n  validateSignatureIdToken(idToken: string, jwtkeys: any, configuration: OpenIdConfiguration): Observable<boolean> {\n    if (!idToken) {\n      return of(true);\n    }\n\n    if (!jwtkeys || !jwtkeys.keys) {\n      return of(false);\n    }\n\n    if(configuration.disablePkce) {\n       return of(true)\n    }\n\n    const headerData = this.tokenHelperService.getHeaderFromToken(idToken, false, configuration);\n\n    if (Object.keys(headerData).length === 0 && headerData.constructor === Object) {\n      this.loggerService.logWarning(configuration, 'id token has no header data');\n\n      return of(false);\n    }\n\n    const kid: string = headerData.kid;\n    let alg: string = headerData.alg;\n\n    let keys: JsonWebKey[] = jwtkeys.keys;\n    let foundKeys: JsonWebKey[];\n    let key: JsonWebKey;\n\n    if (!this.keyAlgorithms.includes(alg)) {\n      this.loggerService.logWarning(configuration, 'alg not supported', alg);\n\n      return of(false);\n    }\n\n    const kty = alg2kty(alg);\n    const use = 'sig';\n\n    try {\n      foundKeys = kid\n        ? this.jwkExtractor.extractJwk(keys, { kid, kty, use }, false)\n        : this.jwkExtractor.extractJwk(keys, { kty, use }, false);\n\n      if (foundKeys.length === 0) {\n        foundKeys = kid ? this.jwkExtractor.extractJwk(keys, { kid, kty }) : this.jwkExtractor.extractJwk(keys, { kty });\n      }\n\n      key = foundKeys[0];\n    } catch (e: any) {\n      this.loggerService.logError(configuration, e);\n\n      return of(false);\n    }\n\n    const algorithm: RsaHashedImportParams | EcKeyImportParams = getImportAlg(alg);\n\n    const signingInput = this.tokenHelperService.getSigningInputFromToken(idToken, true, configuration);\n    const rawSignature = this.tokenHelperService.getSignatureFromToken(idToken, true, configuration);\n\n    const agent: string = this.document.defaultView.navigator.userAgent.toLowerCase();\n\n    if (agent.indexOf('firefox') > -1 && key.kty === 'EC') {\n      key.alg = '';\n    }\n\n    return from(this.jwkWindowCryptoService.importVerificationKey(key, algorithm)).pipe(\n      mergeMap((cryptoKey: CryptoKey) => {\n        const signature: Uint8Array = base64url.parse(rawSignature, { loose: true });\n\n        const verifyAlgorithm: RsaHashedImportParams | EcdsaParams = getVerifyAlg(alg);\n\n        return from(this.jwkWindowCryptoService.verifyKey(verifyAlgorithm, cryptoKey, signature, signingInput));\n      }),\n      tap((isValid: boolean) => {\n        if (!isValid) {\n          this.loggerService.logWarning(configuration, 'incorrect Signature, validation failed for id_token');\n        }\n      })\n    );\n  }\n\n  // Accepts ID Token without 'kid' claim in JOSE header if only one JWK supplied in 'jwks_url'\n  //// private validate_no_kid_in_header_only_one_allowed_in_jwtkeys(header_data: any, jwtkeys: any): boolean {\n  ////    this.oidcSecurityCommon.logDebug('amount of jwtkeys.keys: ' + jwtkeys.keys.length);\n  ////    if (!header_data.hasOwnProperty('kid')) {\n  ////        // no kid defined in Jose header\n  ////        if (jwtkeys.keys.length != 1) {\n  ////            this.oidcSecurityCommon.logDebug('jwtkeys.keys.length != 1 and no kid in header');\n  ////            return false;\n  ////        }\n  ////    }\n\n  ////    return true;\n  //// }\n\n  // Access Token Validation\n  // access_token C1: Hash the octets of the ASCII representation of the access_token with the hash algorithm specified in JWA[JWA]\n  // for the alg Header Parameter of the ID Token's JOSE Header. For instance, if the alg is RS256, the hash algorithm used is SHA-256.\n  // access_token C2: Take the left- most half of the hash and base64url- encode it.\n  // access_token C3: The value of at_hash in the ID Token MUST match the value produced in the previous step if at_hash\n  // is present in the ID Token.\n  validateIdTokenAtHash(accessToken: string, atHash: string, idTokenAlg: string, configuration: OpenIdConfiguration): Observable<boolean> {\n    this.loggerService.logDebug(configuration, 'at_hash from the server:' + atHash);\n\n    // 'sha256' 'sha384' 'sha512'\n    let sha = 'SHA-256';\n\n    if (idTokenAlg.includes('384')) {\n      sha = 'SHA-384';\n    } else if (idTokenAlg.includes('512')) {\n      sha = 'SHA-512';\n    }\n\n    return this.jwtWindowCryptoService.generateAtHash('' + accessToken, sha).pipe(\n      mergeMap((hash: string) => {\n        this.loggerService.logDebug(configuration, 'at_hash client validation not decoded:' + hash);\n        if (hash === atHash) {\n          return of(true); // isValid;\n        } else {\n          return this.jwtWindowCryptoService.generateAtHash('' + decodeURIComponent(accessToken), sha).pipe(\n            map((newHash: string) => {\n              this.loggerService.logDebug(configuration, '-gen access--' + hash);\n\n              return newHash === atHash;\n            })\n          );\n        }\n      })\n    );\n  }\n\n  private millisToMinutesAndSeconds(millis: number): string {\n    const minutes = Math.floor(millis / 60000);\n    const seconds = ((millis % 60000) / 1000).toFixed(0);\n\n    return minutes + ':' + (+seconds < 10 ? '0' : '') + seconds;\n  }\n\n  private calculateNowWithOffset(offsetSeconds: number): number {\n    return new Date(new Date().toUTCString()).valueOf() + offsetSeconds * 1000;\n  }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class HttpBaseService {\n  constructor(private readonly http: HttpClient) {}\n\n  get<T>(url: string, params?: { [key: string]: any }): Observable<T> {\n    return this.http.get<T>(url, params);\n  }\n\n  post<T>(url: string, body: any, params?: { [key: string]: any }): Observable<T> {\n    return this.http.post<T>(url, body, params);\n  }\n}\n","import { HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { HttpBaseService } from './http-base.service';\n\nconst NGSW_CUSTOM_PARAM = 'ngsw-bypass';\n\n@Injectable({ providedIn: 'root' })\nexport class DataService {\n  constructor(private readonly httpClient: HttpBaseService) {}\n\n  get<T>(url: string, config: OpenIdConfiguration, token?: string): Observable<T> {\n    const headers = this.prepareHeaders(token);\n    const params = this.prepareParams(config);\n\n    return this.httpClient.get<T>(url, {\n      headers,\n      params,\n    });\n  }\n\n  post<T>(url: string, body: any, config: OpenIdConfiguration, headersParams?: HttpHeaders): Observable<T> {\n    const headers = headersParams || this.prepareHeaders();\n    const params = this.prepareParams(config);\n\n    return this.httpClient.post<T>(url, body, { headers, params });\n  }\n\n  private prepareHeaders(token?: string): HttpHeaders {\n    let headers = new HttpHeaders();\n\n    headers = headers.set('Accept', 'application/json');\n\n    if (!!token) {\n      headers = headers.set('Authorization', 'Bearer ' + decodeURIComponent(token));\n    }\n\n    return headers;\n  }\n\n  private prepareParams(config: OpenIdConfiguration): HttpParams {\n    let params = new HttpParams();\n\n    const { ngswBypass } = config;\n\n    if (ngswBypass) {\n      params = params.set(NGSW_CUSTOM_PARAM, '');\n    }\n\n    return params;\n  }\n}\n","import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, of, throwError, timer } from 'rxjs';\nimport { catchError, mergeMap, retryWhen, switchMap } from 'rxjs/operators';\nimport { DataService } from '../../api/data.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { TokenValidationService } from '../../validation/token-validation.service';\nimport { AuthResult, CallbackContext } from '../callback-context';\nimport { FlowsDataService } from '../flows-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class CodeFlowCallbackHandlerService {\n  constructor(\n    private readonly urlService: UrlService,\n    private readonly loggerService: LoggerService,\n    private readonly tokenValidationService: TokenValidationService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly dataService: DataService\n  ) {}\n\n  // STEP 1 Code Flow\n  codeFlowCallback(urlToCheck: string, config: OpenIdConfiguration): Observable<CallbackContext> {\n    const code = this.urlService.getUrlParameter(urlToCheck, 'code');\n    const state = this.urlService.getUrlParameter(urlToCheck, 'state');\n    const sessionState = this.urlService.getUrlParameter(urlToCheck, 'session_state');\n\n    if (!state) {\n      this.loggerService.logDebug(config, 'no state in url');\n\n      return throwError(() => new Error('no state in url'));\n    }\n\n    if (!code) {\n      this.loggerService.logDebug(config, 'no code in url');\n\n      return throwError(() => new Error('no code in url'));\n    }\n\n    this.loggerService.logDebug(config, 'running validation for callback', urlToCheck);\n\n    const initialCallbackContext = {\n      code,\n      refreshToken: null,\n      state,\n      sessionState,\n      authResult: null,\n      isRenewProcess: false,\n      jwtKeys: null,\n      validationResult: null,\n      existingIdToken: null,\n    };\n\n    return of(initialCallbackContext);\n  }\n\n  // STEP 2 Code Flow //  Code Flow Silent Renew starts here\n  codeFlowCodeRequest(callbackContext: CallbackContext, config: OpenIdConfiguration): Observable<CallbackContext> {\n    const authStateControl = this.flowsDataService.getAuthStateControl(config);\n    const isStateCorrect = this.tokenValidationService.validateStateFromHashCallback(callbackContext.state, authStateControl, config);\n\n    if (!isStateCorrect) {\n      return throwError(() => new Error('codeFlowCodeRequest incorrect state'));\n    }\n\n    const authWellknownEndpoints = this.storagePersistenceService.read('authWellKnownEndPoints', config);\n    const tokenEndpoint = authWellknownEndpoints?.tokenEndpoint;\n\n    if (!tokenEndpoint) {\n      return throwError(() => new Error('Token Endpoint not defined'));\n    }\n\n    let headers: HttpHeaders = new HttpHeaders();\n\n    headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');\n\n    const bodyForCodeFlow = this.urlService.createBodyForCodeFlowCodeRequest(callbackContext.code, config, config?.customParamsCodeRequest);\n\n    return this.dataService.post(tokenEndpoint, bodyForCodeFlow, config, headers).pipe(\n      switchMap((response: AuthResult) => {\n        callbackContext.authResult = {\n          ...response,\n          state: callbackContext.state,\n          session_state: callbackContext.sessionState,\n        };\n\n        return of(callbackContext);\n      }),\n      retryWhen((error) => this.handleRefreshRetry(error, config)),\n      catchError((error) => {\n        const { authority } = config;\n        const errorMessage = `OidcService code request ${authority}`;\n\n        this.loggerService.logError(config, errorMessage, error);\n\n        return throwError(() => new Error(errorMessage));\n      })\n    );\n  }\n\n  private handleRefreshRetry(errors: Observable<any>, config: OpenIdConfiguration): Observable<any> {\n    return errors.pipe(\n      mergeMap((error) => {\n        // retry token refresh if there is no internet connection\n        if (error && error instanceof HttpErrorResponse && error.error instanceof ProgressEvent && error.error.type === 'error') {\n          const { authority, refreshTokenRetryInSeconds } = config;\n          const errorMessage = `OidcService code request ${authority} - no internet connection`;\n\n          this.loggerService.logWarning(config, errorMessage, error);\n\n          return timer(refreshTokenRetryInSeconds * 1000);\n        }\n\n        return throwError(() => error);\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { distinctUntilChanged } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { AuthResult } from '../flows/callback-context';\nimport { LoggerService } from '../logging/logger.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { TokenValidationService } from '../validation/token-validation.service';\nimport { AuthenticatedResult } from './auth-result';\nimport { AuthStateResult } from './auth-state';\n\nconst DEFAULT_AUTHRESULT = { isAuthenticated: false, allConfigsAuthenticated: [] };\n\n@Injectable({ providedIn: 'root' })\nexport class AuthStateService {\n  private readonly authenticatedInternal$ = new BehaviorSubject<AuthenticatedResult>(DEFAULT_AUTHRESULT);\n\n  get authenticated$(): Observable<AuthenticatedResult> {\n    return this.authenticatedInternal$.asObservable().pipe(distinctUntilChanged());\n  }\n\n  constructor(\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly loggerService: LoggerService,\n    private readonly publicEventsService: PublicEventsService,\n    private readonly tokenValidationService: TokenValidationService\n  ) {}\n\n  setAuthenticatedAndFireEvent(allConfigs: OpenIdConfiguration[]): void {\n    const result = this.composeAuthenticatedResult(allConfigs);\n\n    this.authenticatedInternal$.next(result);\n  }\n\n  setUnauthenticatedAndFireEvent(currentConfig: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.storagePersistenceService.resetAuthStateInStorage(currentConfig);\n\n    const result = this.composeUnAuthenticatedResult(allConfigs);\n\n    this.authenticatedInternal$.next(result);\n  }\n\n  updateAndPublishAuthState(authenticationResult: AuthStateResult): void {\n    this.publicEventsService.fireEvent<AuthStateResult>(EventTypes.NewAuthenticationResult, authenticationResult);\n  }\n\n  setAuthorizationData(\n    accessToken: string,\n    authResult: AuthResult,\n    currentConfig: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): void {\n    this.loggerService.logDebug(currentConfig, `storing the accessToken '${accessToken}'`);\n\n    this.storagePersistenceService.write('authzData', accessToken, currentConfig);\n    this.persistAccessTokenExpirationTime(authResult, currentConfig);\n    this.setAuthenticatedAndFireEvent(allConfigs);\n  }\n\n  getAccessToken(configuration: OpenIdConfiguration): string {\n    if (!this.isAuthenticated(configuration)) {\n      return null;\n    }\n\n    const token = this.storagePersistenceService.getAccessToken(configuration);\n\n    return this.decodeURIComponentSafely(token);\n  }\n\n  getIdToken(configuration: OpenIdConfiguration): string {\n    if (!this.isAuthenticated(configuration)) {\n      return null;\n    }\n\n    const token = this.storagePersistenceService.getIdToken(configuration);\n\n    return this.decodeURIComponentSafely(token);\n  }\n\n  getRefreshToken(configuration: OpenIdConfiguration): string {\n    if (!this.isAuthenticated(configuration)) {\n      return null;\n    }\n\n    const token = this.storagePersistenceService.getRefreshToken(configuration);\n\n    return this.decodeURIComponentSafely(token);\n  }\n\n  getAuthenticationResult(configuration: OpenIdConfiguration): any {\n    if (!this.isAuthenticated(configuration)) {\n      return null;\n    }\n\n    return this.storagePersistenceService.getAuthenticationResult(configuration);\n  }\n\n  areAuthStorageTokensValid(configuration: OpenIdConfiguration): boolean {\n    if (!this.isAuthenticated(configuration)) {\n      return false;\n    }\n\n    if (this.hasIdTokenExpiredAndRenewCheckIsEnabled(configuration)) {\n      this.loggerService.logDebug(configuration, 'persisted idToken is expired');\n\n      return false;\n    }\n\n    if (this.hasAccessTokenExpiredIfExpiryExists(configuration)) {\n      this.loggerService.logDebug(configuration, 'persisted accessToken is expired');\n\n      return false;\n    }\n\n    this.loggerService.logDebug(configuration, 'persisted idToken and accessToken are valid');\n\n    return true;\n  }\n\n  hasIdTokenExpiredAndRenewCheckIsEnabled(configuration: OpenIdConfiguration): boolean {\n    const { renewTimeBeforeTokenExpiresInSeconds, triggerRefreshWhenIdTokenExpired, disableIdTokenValidation } = configuration;\n\n    if (!triggerRefreshWhenIdTokenExpired || disableIdTokenValidation) {\n      return false;\n    }\n    const tokenToCheck = this.storagePersistenceService.getIdToken(configuration);\n\n    const idTokenExpired = this.tokenValidationService.hasIdTokenExpired(tokenToCheck, configuration, renewTimeBeforeTokenExpiresInSeconds);\n\n    if (idTokenExpired) {\n      this.publicEventsService.fireEvent<boolean>(EventTypes.IdTokenExpired, idTokenExpired);\n    }\n\n    return idTokenExpired;\n  }\n\n  hasAccessTokenExpiredIfExpiryExists(configuration: OpenIdConfiguration): boolean {\n    const { renewTimeBeforeTokenExpiresInSeconds } = configuration;\n    const accessTokenExpiresIn = this.storagePersistenceService.read('access_token_expires_at', configuration);\n    const accessTokenHasNotExpired = this.tokenValidationService.validateAccessTokenNotExpired(\n      accessTokenExpiresIn,\n      configuration,\n      renewTimeBeforeTokenExpiresInSeconds\n    );\n\n    const hasExpired = !accessTokenHasNotExpired;\n\n    if (hasExpired) {\n      this.publicEventsService.fireEvent<boolean>(EventTypes.TokenExpired, hasExpired);\n    }\n\n    return hasExpired;\n  }\n\n  isAuthenticated(configuration: OpenIdConfiguration): boolean {\n    const hasAccessToken = !!this.storagePersistenceService.getAccessToken(configuration);\n    const hasIdToken = !!this.storagePersistenceService.getIdToken(configuration);\n\n    return hasAccessToken && hasIdToken;\n  }\n\n  private decodeURIComponentSafely(token: string): string {\n    if (token) {\n      return decodeURIComponent(token);\n    } else {\n      return '';\n    }\n  }\n\n  private persistAccessTokenExpirationTime(authResult: any, configuration: OpenIdConfiguration): void {\n    if (authResult?.expires_in) {\n      const accessTokenExpiryTime = new Date(new Date().toUTCString()).valueOf() + authResult.expires_in * 1000;\n\n      this.storagePersistenceService.write('access_token_expires_at', accessTokenExpiryTime, configuration);\n    }\n  }\n\n  private composeAuthenticatedResult(allConfigs: OpenIdConfiguration[]): AuthenticatedResult {\n    if (allConfigs.length === 1) {\n      const { configId } = allConfigs[0];\n\n      return { isAuthenticated: true, allConfigsAuthenticated: [{ configId, isAuthenticated: true }] };\n    }\n\n    return this.checkAllConfigsIfTheyAreAuthenticated(allConfigs);\n  }\n\n  private composeUnAuthenticatedResult(allConfigs: OpenIdConfiguration[]): AuthenticatedResult {\n    if (allConfigs.length === 1) {\n      const { configId } = allConfigs[0];\n\n      return { isAuthenticated: false, allConfigsAuthenticated: [{ configId, isAuthenticated: false }] };\n    }\n\n    return this.checkAllConfigsIfTheyAreAuthenticated(allConfigs);\n  }\n\n  private checkAllConfigsIfTheyAreAuthenticated(allConfigs: OpenIdConfiguration[]): AuthenticatedResult {\n    const allConfigsAuthenticated = allConfigs.map((config) => ({\n      configId: config.configId,\n      isAuthenticated: this.isAuthenticated(config),\n    }));\n\n    const isAuthenticated = allConfigsAuthenticated.every((x) => !!x.isAuthenticated);\n\n    return { allConfigsAuthenticated, isAuthenticated };\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable, of, throwError } from 'rxjs';\nimport { map, retry, switchMap } from 'rxjs/operators';\nimport { DataService } from '../api/data.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LogLevel } from '../logging/log-level';\nimport { LoggerService } from '../logging/logger.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { TokenHelperService } from '../utils/tokenHelper/token-helper.service';\nimport { ConfigUserDataResult, UserDataResult } from './userdata-result';\n\nconst DEFAULT_USERRESULT = { userData: null, allUserData: [] };\n\n@Injectable({ providedIn: 'root' })\nexport class UserService {\n  private readonly userDataInternal$ = new BehaviorSubject<UserDataResult>(DEFAULT_USERRESULT);\n\n  get userData$(): Observable<UserDataResult> {\n    return this.userDataInternal$.asObservable();\n  }\n\n  constructor(\n    private readonly oidcDataService: DataService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly eventService: PublicEventsService,\n    private readonly loggerService: LoggerService,\n    private readonly tokenHelperService: TokenHelperService,\n    private readonly flowHelper: FlowHelper\n  ) {}\n\n  getAndPersistUserDataInStore(\n    currentConfiguration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    isRenewProcess = false,\n    idToken?: any,\n    decodedIdToken?: any\n  ): Observable<any> {\n    idToken = idToken || this.storagePersistenceService.getIdToken(currentConfiguration);\n    decodedIdToken = decodedIdToken || this.tokenHelperService.getPayloadFromToken(idToken, false, currentConfiguration);\n\n    const existingUserDataFromStorage = this.getUserDataFromStore(currentConfiguration);\n    const haveUserData = !!existingUserDataFromStorage;\n    const isCurrentFlowImplicitFlowWithAccessToken = this.flowHelper.isCurrentFlowImplicitFlowWithAccessToken(currentConfiguration);\n    const isCurrentFlowCodeFlow = this.flowHelper.isCurrentFlowCodeFlow(currentConfiguration);\n\n    const accessToken = this.storagePersistenceService.getAccessToken(currentConfiguration);\n\n    if (!(isCurrentFlowImplicitFlowWithAccessToken || isCurrentFlowCodeFlow)) {\n      this.loggerService.logDebug(currentConfiguration, `authCallback idToken flow with accessToken ${accessToken}`);\n\n      this.setUserDataToStore(decodedIdToken, currentConfiguration, allConfigs);\n\n      return of(decodedIdToken);\n    }\n\n    const { renewUserInfoAfterTokenRenew } = currentConfiguration;\n\n    if (!isRenewProcess || renewUserInfoAfterTokenRenew || !haveUserData) {\n      return this.getUserDataOidcFlowAndSave(decodedIdToken.sub, currentConfiguration, allConfigs).pipe(\n        switchMap((userData) => {\n          this.loggerService.logDebug(currentConfiguration, 'Received user data: ', userData);\n          if (!!userData) {\n            this.loggerService.logDebug(currentConfiguration, 'accessToken: ', accessToken);\n\n            return of(userData);\n          } else {\n            return throwError(() => new Error('Received no user data, request failed'));\n          }\n        })\n      );\n    }\n\n    return of(existingUserDataFromStorage);\n  }\n\n  getUserDataFromStore(currentConfiguration: OpenIdConfiguration): any {\n    return this.storagePersistenceService.read('userData', currentConfiguration) || null;\n  }\n\n  publishUserDataIfExists(currentConfiguration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    const userData = this.getUserDataFromStore(currentConfiguration);\n\n    if (userData) {\n      this.fireUserDataEvent(currentConfiguration, allConfigs, userData);\n    }\n  }\n\n  setUserDataToStore(userData: any, currentConfiguration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.storagePersistenceService.write('userData', userData, currentConfiguration);\n    this.fireUserDataEvent(currentConfiguration, allConfigs, userData);\n  }\n\n  resetUserDataInStore(currentConfiguration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.storagePersistenceService.remove('userData', currentConfiguration);\n    this.fireUserDataEvent(currentConfiguration, allConfigs, null);\n  }\n\n  private getUserDataOidcFlowAndSave(\n    idTokenSub: any,\n    currentConfiguration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<any> {\n    return this.getIdentityUserData(currentConfiguration).pipe(\n      map((data: any) => {\n         this.loggerService.logStorage(LogLevel.Debug, \"getUserDataOidcFlowAndSave - data: \", data);\n         this.loggerService.logStorage(LogLevel.Debug, \"getUserDataOidcFlowAndSave - idTokenSub: \", idTokenSub)\n         if(currentConfiguration.disableIdTokenValidation) {\n           return true;\n         } else if (this.validateUserDataSubIdToken(currentConfiguration, idTokenSub, data?.sub)) {\n          this.setUserDataToStore(data, currentConfiguration, allConfigs);\n\n          return data;\n        } else {\n          // something went wrong, user data sub does not match that from id_token\n          this.loggerService.logWarning(currentConfiguration, `User data sub does not match sub in id_token, resetting`);\n          this.resetUserDataInStore(currentConfiguration, allConfigs);\n\n          return null;\n        }\n      })\n    );\n  }\n\n  private getIdentityUserData(currentConfiguration: OpenIdConfiguration): Observable<any> {\n    const token = this.storagePersistenceService.getAccessToken(currentConfiguration);\n\n    this.loggerService.logDebug(currentConfiguration, \"Token in storage  \",token)\n\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', currentConfiguration);\n\n    if (!authWellKnownEndPoints) {\n      this.loggerService.logWarning(currentConfiguration, 'init check session: authWellKnownEndpoints is undefined');\n\n      return throwError(() => new Error('authWellKnownEndpoints is undefined'));\n    }\n\n    const userInfoEndpoint = authWellKnownEndPoints.userInfoEndpoint;\n\n    if (!userInfoEndpoint) {\n      this.loggerService.logError(\n        currentConfiguration,\n        'init check session: authWellKnownEndpoints.userinfo_endpoint is undefined; set auto_userinfo = false in config'\n      );\n\n      return throwError(() => new Error('authWellKnownEndpoints.userinfo_endpoint is undefined'));\n    }\n\n    return this.oidcDataService.get(userInfoEndpoint, currentConfiguration, token).pipe(retry(2));\n  }\n\n  private validateUserDataSubIdToken(currentConfiguration: OpenIdConfiguration, idTokenSub: any, userDataSub: any): boolean {\n    if (!idTokenSub) {\n      return false;\n    }\n\n    if (!userDataSub) {\n      return false;\n    }\n\n    if ((idTokenSub as string) !== (userDataSub as string)) {\n      this.loggerService.logDebug(currentConfiguration, 'validateUserDataSubIdToken failed', idTokenSub, userDataSub);\n\n      return false;\n    }\n\n    return true;\n  }\n\n  private fireUserDataEvent(currentConfiguration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], passedUserData: any): void {\n    const userData = this.composeSingleOrMultipleUserDataObject(currentConfiguration, allConfigs, passedUserData);\n\n    this.userDataInternal$.next(userData);\n\n    const { configId } = currentConfiguration;\n\n    this.eventService.fireEvent(EventTypes.UserDataChanged, { configId, userData: passedUserData });\n  }\n\n  private composeSingleOrMultipleUserDataObject(\n    currentConfiguration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    passedUserData: any\n  ): UserDataResult {\n    const hasManyConfigs = allConfigs.length > 1;\n\n    if (!hasManyConfigs) {\n      const { configId } = currentConfiguration;\n\n      return this.composeSingleUserDataResult(configId, passedUserData);\n    }\n\n    const allUserData: ConfigUserDataResult[] = allConfigs.map((config) => {\n      const { configId } = currentConfiguration;\n\n      if (this.currentConfigIsToUpdate(configId, config)) {\n        return { configId: config.configId, userData: passedUserData };\n      }\n\n      const alreadySavedUserData = this.storagePersistenceService.read('userData', config) || null;\n\n      return { configId: config.configId, userData: alreadySavedUserData };\n    });\n\n    return {\n      userData: null,\n      allUserData,\n    };\n  }\n\n  private composeSingleUserDataResult(configId: string, userData: any): UserDataResult {\n    return {\n      userData,\n      allUserData: [{ configId, userData }],\n    };\n  }\n\n  private currentConfigIsToUpdate(configId: string, config: OpenIdConfiguration): boolean {\n    return config.configId === configId;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LoggerService } from '../logging/logger.service';\nimport { UserService } from '../user-data/user.service';\nimport { FlowsDataService } from './flows-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ResetAuthDataService {\n  constructor(\n    private readonly authStateService: AuthStateService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly userService: UserService,\n    private readonly loggerService: LoggerService\n  ) {}\n\n  resetAuthorizationData(currentConfiguration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.userService.resetUserDataInStore(currentConfiguration, allConfigs);\n    this.flowsDataService.resetStorageFlowData(currentConfiguration);\n    this.authStateService.setUnauthenticatedAndFireEvent(currentConfiguration, allConfigs);\n\n    this.loggerService.logDebug(currentConfiguration, 'Local Login information cleaned up and event fired');\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { CallbackContext } from '../callback-context';\nimport { FlowsDataService } from '../flows-data.service';\nimport { ResetAuthDataService } from '../reset-auth-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ImplicitFlowCallbackHandlerService {\n  constructor(\n    private readonly resetAuthDataService: ResetAuthDataService,\n    private readonly loggerService: LoggerService,\n    private readonly flowsDataService: FlowsDataService,\n    @Inject(DOCUMENT) private readonly document: Document\n  ) {}\n\n  // STEP 1 Code Flow\n  // STEP 1 Implicit Flow\n  implicitFlowCallback(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], hash?: string): Observable<CallbackContext> {\n    const isRenewProcessData = this.flowsDataService.isSilentRenewRunning(config);\n\n    this.loggerService.logDebug(config, 'BEGIN callback, no auth data');\n    if (!isRenewProcessData) {\n      this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n    }\n\n    hash = hash || this.document.location.hash.substring(1);\n\n    const authResult: any = hash.split('&').reduce((resultData: any, item: string) => {\n      const parts = item.split('=');\n\n      resultData[parts.shift() as string] = parts.join('=');\n\n      return resultData;\n    }, {});\n\n    const callbackContext = {\n      code: null,\n      refreshToken: null,\n      state: null,\n      sessionState: null,\n      authResult,\n      isRenewProcess: isRenewProcessData,\n      jwtKeys: null,\n      validationResult: null,\n      existingIdToken: null,\n    };\n\n    return of(callbackContext);\n  }\n}\n","import { HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, retry } from 'rxjs/operators';\nimport { DataService } from '../api/data.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LoggerService } from '../logging/logger.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { JwtKeys } from '../validation/jwtkeys';\n\n@Injectable({ providedIn: 'root' })\nexport class SigninKeyDataService {\n  constructor(\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly loggerService: LoggerService,\n    private readonly dataService: DataService\n  ) {}\n\n  getSigningKeys(currentConfiguration: OpenIdConfiguration): Observable<JwtKeys> {\n    const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', currentConfiguration);\n    const jwksUri = authWellKnownEndPoints?.jwksUri;\n\n    if (!jwksUri) {\n      const error = `getSigningKeys: authWellKnownEndpoints.jwksUri is: '${jwksUri}'`;\n\n      this.loggerService.logWarning(currentConfiguration, error);\n\n      return throwError(() => new Error(error));\n    }\n\n    this.loggerService.logDebug(currentConfiguration, 'Getting signinkeys from ', jwksUri);\n\n    return this.dataService.get<JwtKeys>(jwksUri, currentConfiguration).pipe(\n      retry(2),\n      catchError((e) => this.handleErrorGetSigningKeys(e, currentConfiguration))\n    );\n  }\n\n  private handleErrorGetSigningKeys(errorResponse: HttpResponse<any> | any, currentConfiguration: OpenIdConfiguration): Observable<never> {\n    let errMsg = '';\n\n    if (errorResponse instanceof HttpResponse) {\n      const body = errorResponse.body || {};\n      const err = JSON.stringify(body);\n      const { status, statusText } = errorResponse;\n\n      errMsg = `${status || ''} - ${statusText || ''} ${err || ''}`;\n    } else {\n      const { message } = errorResponse;\n\n      errMsg = !!message ? message : `${errorResponse}`;\n    }\n    this.loggerService.logError(currentConfiguration, errMsg);\n\n    return throwError(() => new Error(errMsg));\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { catchError, switchMap, tap } from 'rxjs/operators';\nimport { AuthStateService } from '../../auth-state/auth-state.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { JwtKeys } from '../../validation/jwtkeys';\nimport { ValidationResult } from '../../validation/validation-result';\nimport { CallbackContext } from '../callback-context';\nimport { FlowsDataService } from '../flows-data.service';\nimport { ResetAuthDataService } from '../reset-auth-data.service';\nimport { SigninKeyDataService } from '../signin-key-data.service';\n\nconst JWT_KEYS = 'jwtKeys';\n\n@Injectable({ providedIn: 'root' })\nexport class HistoryJwtKeysCallbackHandlerService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly authStateService: AuthStateService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly signInKeyDataService: SigninKeyDataService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly resetAuthDataService: ResetAuthDataService,\n    @Inject(DOCUMENT) private readonly document: Document\n  ) {}\n\n  // STEP 3 Code Flow, STEP 2 Implicit Flow, STEP 3 Refresh Token\n  callbackHistoryAndResetJwtKeys(\n    callbackContext: CallbackContext,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    if (!this.responseHasIdToken(callbackContext)) {\n      const existingIdToken = this.storagePersistenceService.getIdToken(config);\n\n      callbackContext.authResult = { ...callbackContext.authResult, id_token: existingIdToken };\n    }\n\n    this.storagePersistenceService.write('authnResult', callbackContext.authResult, config);\n\n    if (config.allowUnsafeReuseRefreshToken && callbackContext.authResult.refresh_token) {\n      this.storagePersistenceService.write('reusable_refresh_token', callbackContext.authResult.refresh_token, config);\n    }\n\n    if (this.historyCleanUpTurnedOn(config) && !callbackContext.isRenewProcess) {\n      this.resetBrowserHistory();\n    } else {\n      this.loggerService.logDebug(config, 'history clean up inactive');\n    }\n\n    if (callbackContext.authResult.error) {\n      const errorMessage = `AuthCallback AuthResult came with error: ${callbackContext.authResult.error}`;\n\n      this.loggerService.logDebug(config, errorMessage);\n      this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n      this.flowsDataService.setNonce('', config);\n      this.handleResultErrorFromCallback(callbackContext.authResult, callbackContext.isRenewProcess);\n\n      return throwError(() => new Error(errorMessage));\n    }\n\n    this.loggerService.logDebug(\n      config,\n      `AuthResult '${JSON.stringify(callbackContext.authResult, null, 2)}'.\n      AuthCallback created, begin token validation`\n    );\n\n    return this.signInKeyDataService.getSigningKeys(config).pipe(\n      tap((jwtKeys: JwtKeys) => this.storeSigningKeys(jwtKeys, config)),\n      catchError((err) => {\n        // fallback: try to load jwtKeys from storage\n        const storedJwtKeys = this.readSigningKeys(config);\n\n        if (!!storedJwtKeys) {\n          this.loggerService.logWarning(config, `Failed to retrieve signing keys, fallback to stored keys`);\n\n          return of(storedJwtKeys);\n        }\n\n        return throwError(() => new Error(err));\n      }),\n      switchMap((jwtKeys) => {\n        if (jwtKeys) {\n          callbackContext.jwtKeys = jwtKeys;\n\n          return of(callbackContext);\n        }\n\n        const errorMessage = `Failed to retrieve signing key`;\n\n        this.loggerService.logWarning(config, errorMessage);\n\n        return throwError(() => new Error(errorMessage));\n      }),\n      catchError((err) => {\n        const errorMessage = `Failed to retrieve signing key with error: ${err}`;\n\n        this.loggerService.logWarning(config, errorMessage);\n\n        return throwError(() => new Error(errorMessage));\n      })\n    );\n  }\n\n  private responseHasIdToken(callbackContext: CallbackContext): boolean {\n    return !!callbackContext?.authResult?.id_token;\n  }\n\n  private handleResultErrorFromCallback(result: any, isRenewProcess: boolean): void {\n    let validationResult = ValidationResult.SecureTokenServerError;\n\n    if ((result.error as string) === 'login_required') {\n      validationResult = ValidationResult.LoginRequired;\n    }\n\n    this.authStateService.updateAndPublishAuthState({\n      isAuthenticated: false,\n      validationResult,\n      isRenewProcess,\n    });\n  }\n\n  private historyCleanUpTurnedOn(config: OpenIdConfiguration): boolean {\n    const { historyCleanupOff } = config;\n\n    return !historyCleanupOff;\n  }\n\n  private resetBrowserHistory(): void {\n    this.document.defaultView.history.replaceState(\n      {},\n      this.document.title,\n      this.document.defaultView.location.origin + this.document.defaultView.location.pathname\n    );\n  }\n\n  private storeSigningKeys(jwtKeys: JwtKeys, config: OpenIdConfiguration): void {\n    this.storagePersistenceService.write(JWT_KEYS, jwtKeys, config);\n  }\n\n  private readSigningKeys(config: OpenIdConfiguration): any {\n    return this.storagePersistenceService.read(JWT_KEYS, config);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\nimport { AuthStateService } from '../../auth-state/auth-state.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { UserService } from '../../user-data/user.service';\nimport { StateValidationResult } from '../../validation/state-validation-result';\nimport { CallbackContext } from '../callback-context';\nimport { FlowsDataService } from '../flows-data.service';\nimport { ResetAuthDataService } from '../reset-auth-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class UserCallbackHandlerService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly authStateService: AuthStateService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly userService: UserService,\n    private readonly resetAuthDataService: ResetAuthDataService\n  ) {}\n\n  // STEP 5 userData\n  callbackUser(\n    callbackContext: CallbackContext,\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    const { isRenewProcess, validationResult, authResult, refreshToken } = callbackContext;\n    const { autoUserInfo, renewUserInfoAfterTokenRenew } = configuration;\n\n    if (!autoUserInfo) {\n      if (!isRenewProcess || renewUserInfoAfterTokenRenew) {\n        // userData is set to the id_token decoded, auto get user data set to false\n        if (validationResult.decodedIdToken) {\n          this.userService.setUserDataToStore(validationResult.decodedIdToken, configuration, allConfigs);\n        }\n      }\n\n      if (!isRenewProcess && !refreshToken) {\n        this.flowsDataService.setSessionState(authResult.session_state, configuration);\n      }\n\n      this.publishAuthState(validationResult, isRenewProcess);\n\n      return of(callbackContext);\n    }\n\n    return this.userService\n      .getAndPersistUserDataInStore(configuration, allConfigs, isRenewProcess, validationResult.idToken, validationResult.decodedIdToken)\n      .pipe(\n        switchMap((userData) => {\n          if (!!userData) {\n            if (!refreshToken) {\n              this.flowsDataService.setSessionState(authResult.session_state, configuration);\n            }\n\n            this.publishAuthState(validationResult, isRenewProcess);\n\n            return of(callbackContext);\n          } else {\n            this.resetAuthDataService.resetAuthorizationData(configuration, allConfigs);\n            this.publishUnauthenticatedState(validationResult, isRenewProcess);\n            const errorMessage = `Called for userData but they were ${userData}`;\n\n            this.loggerService.logWarning(configuration, errorMessage);\n\n            return throwError(() => new Error(errorMessage));\n          }\n        }),\n        catchError((err) => {\n          const errorMessage = `Failed to retrieve user info with error:  ${err}`;\n\n          this.loggerService.logWarning(configuration, errorMessage);\n\n          return throwError(() => new Error(errorMessage));\n        })\n      );\n  }\n\n  private publishAuthState(stateValidationResult: StateValidationResult, isRenewProcess: boolean): void {\n    this.authStateService.updateAndPublishAuthState({\n      isAuthenticated: true,\n      validationResult: stateValidationResult.state,\n      isRenewProcess,\n    });\n  }\n\n  private publishUnauthenticatedState(stateValidationResult: StateValidationResult, isRenewProcess: boolean): void {\n    this.authStateService.updateAndPublishAuthState({\n      isAuthenticated: false,\n      validationResult: stateValidationResult.state,\n      isRenewProcess,\n    });\n  }\n}\n","import { ValidationResult } from './validation-result';\n\nexport class StateValidationResult {\n  constructor(\n    public accessToken = '',\n    public idToken = '',\n    public authResponseIsValid = false,\n    public decodedIdToken: any = {\n      at_hash: '',\n    },\n    public state: ValidationResult = ValidationResult.NotSet\n  ) {}\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class EqualityService {\n  isStringEqualOrNonOrderedArrayEqual(value1: string | any[], value2: string | any[]): boolean {\n    if (this.isNullOrUndefined(value1)) {\n      return false;\n    }\n\n    if (this.isNullOrUndefined(value2)) {\n      return false;\n    }\n\n    if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {\n      return false;\n    }\n\n    if (this.bothValuesAreStrings(value1, value2)) {\n      return value1 === value2;\n    }\n\n    return this.arraysHaveEqualContent(value1 as any[], value2 as any[]);\n  }\n\n  areEqual(value1: string | any[] | any | null | undefined, value2: string | any[] | any | null | undefined): boolean {\n    if (!value1 || !value2) {\n      return false;\n    }\n\n    if (this.bothValuesAreArrays(value1, value2)) {\n      return this.arraysStrictEqual(value1 as any[], value2 as any[]);\n    }\n\n    if (this.bothValuesAreStrings(value1, value2)) {\n      return value1 === value2;\n    }\n\n    if (this.bothValuesAreObjects(value1, value2)) {\n      return JSON.stringify(value1).toLowerCase() === JSON.stringify(value2).toLowerCase();\n    }\n\n    if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {\n      if (Array.isArray(value1) && this.valueIsString(value2)) {\n        return value1[0] === value2;\n      }\n      if (Array.isArray(value2) && this.valueIsString(value1)) {\n        return value2[0] === value1;\n      }\n    }\n\n    return value1 === value2;\n  }\n\n  private oneValueIsStringAndTheOtherIsArray(value1: string | any | any[], value2: string | any | any[]): boolean {\n    return (Array.isArray(value1) && this.valueIsString(value2)) || (Array.isArray(value2) && this.valueIsString(value1));\n  }\n\n  private bothValuesAreObjects(value1: string | any | any[], value2: string | any | any[]): boolean {\n    return this.valueIsObject(value1) && this.valueIsObject(value2);\n  }\n\n  private bothValuesAreStrings(value1: string | any | any[], value2: string | any | any[]): boolean {\n    return this.valueIsString(value1) && this.valueIsString(value2);\n  }\n\n  private bothValuesAreArrays(value1: string | any | any[], value2: string | any | any[]): boolean {\n    return Array.isArray(value1) && Array.isArray(value2);\n  }\n\n  private valueIsString(value: any): boolean {\n    return typeof value === 'string' || value instanceof String;\n  }\n\n  private valueIsObject(value: any): boolean {\n    return typeof value === 'object';\n  }\n\n  private arraysStrictEqual(arr1: Array<string>, arr2: Array<string>): boolean {\n    if (arr1.length !== arr2.length) {\n      return false;\n    }\n\n    for (let i = arr1.length; i--; ) {\n      if (arr1[i] !== arr2[i]) {\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  private arraysHaveEqualContent(arr1: Array<string>, arr2: Array<string>): boolean {\n    if (arr1.length !== arr2.length) {\n      return false;\n    }\n\n    return arr1.some((v) => arr2.includes(v));\n  }\n\n  private isNullOrUndefined(val: any): boolean {\n    return val === null || val === undefined;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { map, mergeMap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { LogLevel } from '../logging/log-level';\nimport { LoggerService } from '../logging/logger.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { EqualityService } from '../utils/equality/equality.service';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { TokenHelperService } from '../utils/tokenHelper/token-helper.service';\nimport { StateValidationResult } from './state-validation-result';\nimport { TokenValidationService } from './token-validation.service';\nimport { ValidationResult } from './validation-result';\n\n@Injectable({ providedIn: 'root' })\nexport class StateValidationService {\n  constructor(\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly tokenValidationService: TokenValidationService,\n    private readonly tokenHelperService: TokenHelperService,\n    private readonly loggerService: LoggerService,\n    private readonly equalityService: EqualityService,\n    private readonly flowHelper: FlowHelper\n  ) {}\n\n  getValidatedStateResult(callbackContext: CallbackContext, configuration: OpenIdConfiguration): Observable<StateValidationResult> {\n    if (!callbackContext || callbackContext.authResult.error) {\n      return of(new StateValidationResult('', '', false, {}));\n    }\n\n    return this.validateState(callbackContext, configuration);\n  }\n\n  private validateState(callbackContext: CallbackContext, configuration: OpenIdConfiguration): Observable<StateValidationResult> {\n    const toReturn = new StateValidationResult();\n    const authStateControl = this.storagePersistenceService.read('authStateControl', configuration);\n\n    if (!this.tokenValidationService.validateStateFromHashCallback(callbackContext.authResult.state, authStateControl, configuration)) {\n      this.loggerService.logWarning(configuration, 'authCallback incorrect state');\n      toReturn.state = ValidationResult.StatesDoNotMatch;\n      this.handleUnsuccessfulValidation(configuration);\n\n      return of(toReturn);\n    }\n\n    const isCurrentFlowImplicitFlowWithAccessToken = this.flowHelper.isCurrentFlowImplicitFlowWithAccessToken(configuration);\n    const isCurrentFlowCodeFlow = this.flowHelper.isCurrentFlowCodeFlow(configuration);\n\n    if (isCurrentFlowImplicitFlowWithAccessToken || isCurrentFlowCodeFlow) {\n      toReturn.accessToken = callbackContext.authResult.access_token;\n    }\n\n    this.loggerService.logStorage(LogLevel.Debug, \"getValidatedStateResult - toReturn: \", toReturn);\n    const disableIdTokenValidation = configuration.disableIdTokenValidation;\n\n    if (disableIdTokenValidation) {\n      toReturn.state = ValidationResult.Ok;\n      // TODO TESTING\n      toReturn.authResponseIsValid = true;\n\n      return of(toReturn);\n    }\n\n    const isInRefreshTokenFlow = callbackContext.isRenewProcess && !!callbackContext.refreshToken;\n    const hasIdToken = !!callbackContext.authResult.id_token;\n\n    if (isInRefreshTokenFlow && !hasIdToken) {\n      toReturn.state = ValidationResult.Ok;\n      // TODO TESTING\n      toReturn.authResponseIsValid = true;\n\n      return of(toReturn);\n    }\n\n    if (callbackContext.authResult.id_token) {\n      const {\n        clientId,\n        issValidationOff,\n        maxIdTokenIatOffsetAllowedInSeconds,\n        disableIatOffsetValidation,\n        ignoreNonceAfterRefresh,\n        renewTimeBeforeTokenExpiresInSeconds,\n      } = configuration;\n\n      toReturn.idToken = callbackContext.authResult.id_token;\n      toReturn.decodedIdToken = this.tokenHelperService.getPayloadFromToken(toReturn.idToken, false, configuration);\n\n      return this.tokenValidationService.validateSignatureIdToken(toReturn.idToken, callbackContext.jwtKeys, configuration).pipe(\n        mergeMap((isSignatureIdTokenValid: boolean) => {\n          if (!isSignatureIdTokenValid) {\n            this.loggerService.logDebug(configuration, 'authCallback Signature validation failed id_token');\n            toReturn.state = ValidationResult.SignatureFailed;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          const authNonce = this.storagePersistenceService.read('authNonce', configuration);\n\n          if (\n            !this.tokenValidationService.validateIdTokenNonce(toReturn.decodedIdToken, authNonce, ignoreNonceAfterRefresh, configuration)\n          ) {\n            this.loggerService.logWarning(\n              configuration,\n              'authCallback incorrect nonce, did you call the checkAuth() method multiple times?'\n            );\n            toReturn.state = ValidationResult.IncorrectNonce;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (!this.tokenValidationService.validateRequiredIdToken(toReturn.decodedIdToken, configuration)) {\n            this.loggerService.logDebug(configuration, 'authCallback Validation, one of the REQUIRED properties missing from id_token');\n            toReturn.state = ValidationResult.RequiredPropertyMissing;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (\n            !isInRefreshTokenFlow &&\n            !this.tokenValidationService.validateIdTokenIatMaxOffset(\n              toReturn.decodedIdToken,\n              maxIdTokenIatOffsetAllowedInSeconds,\n              disableIatOffsetValidation,\n              configuration\n            )\n          ) {\n            this.loggerService.logWarning(\n              configuration,\n              'authCallback Validation, iat rejected id_token was issued too far away from the current time'\n            );\n            toReturn.state = ValidationResult.MaxOffsetExpired;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          const authWellKnownEndPoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n          if (authWellKnownEndPoints) {\n            if (issValidationOff) {\n              this.loggerService.logDebug(configuration, 'iss validation is turned off, this is not recommended!');\n            } else if (\n              !issValidationOff &&\n              !this.tokenValidationService.validateIdTokenIss(toReturn.decodedIdToken, authWellKnownEndPoints.issuer, configuration)\n            ) {\n              this.loggerService.logWarning(configuration, 'authCallback incorrect iss does not match authWellKnownEndpoints issuer');\n              toReturn.state = ValidationResult.IssDoesNotMatchIssuer;\n              this.handleUnsuccessfulValidation(configuration);\n\n              return of(toReturn);\n            }\n          } else {\n            this.loggerService.logWarning(configuration, 'authWellKnownEndpoints is undefined');\n            toReturn.state = ValidationResult.NoAuthWellKnownEndPoints;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (!this.tokenValidationService.validateIdTokenAud(toReturn.decodedIdToken, clientId, configuration)) {\n            this.loggerService.logWarning(configuration, 'authCallback incorrect aud');\n            toReturn.state = ValidationResult.IncorrectAud;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (!this.tokenValidationService.validateIdTokenAzpExistsIfMoreThanOneAud(toReturn.decodedIdToken)) {\n            this.loggerService.logWarning(configuration, 'authCallback missing azp');\n            toReturn.state = ValidationResult.IncorrectAzp;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (!this.tokenValidationService.validateIdTokenAzpValid(toReturn.decodedIdToken, clientId)) {\n            this.loggerService.logWarning(configuration, 'authCallback incorrect azp');\n            toReturn.state = ValidationResult.IncorrectAzp;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (!this.isIdTokenAfterRefreshTokenRequestValid(callbackContext, toReturn.decodedIdToken, configuration)) {\n            this.loggerService.logWarning(configuration, 'authCallback pre, post id_token claims do not match in refresh');\n            toReturn.state = ValidationResult.IncorrectIdTokenClaimsAfterRefresh;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          if (\n            !isInRefreshTokenFlow &&\n            !this.tokenValidationService.validateIdTokenExpNotExpired(\n              toReturn.decodedIdToken,\n              configuration,\n              renewTimeBeforeTokenExpiresInSeconds\n            )\n          ) {\n            this.loggerService.logWarning(configuration, 'authCallback id token expired');\n            toReturn.state = ValidationResult.TokenExpired;\n            this.handleUnsuccessfulValidation(configuration);\n\n            return of(toReturn);\n          }\n\n          return this.validateDefault(\n            isCurrentFlowImplicitFlowWithAccessToken,\n            isCurrentFlowCodeFlow,\n            toReturn,\n            configuration,\n            callbackContext\n          );\n        })\n      );\n    } else {\n      this.loggerService.logDebug(configuration, 'No id_token found, skipping id_token validation');\n    }\n\n    return this.validateDefault(isCurrentFlowImplicitFlowWithAccessToken, isCurrentFlowCodeFlow, toReturn, configuration, callbackContext);\n  }\n\n  private validateDefault(\n    isCurrentFlowImplicitFlowWithAccessToken: boolean,\n    isCurrentFlowCodeFlow: boolean,\n    toReturn: StateValidationResult,\n    configuration: OpenIdConfiguration,\n    callbackContext: CallbackContext\n  ): Observable<StateValidationResult> {\n    // flow id_token\n    if (!isCurrentFlowImplicitFlowWithAccessToken && !isCurrentFlowCodeFlow) {\n      toReturn.authResponseIsValid = true;\n      toReturn.state = ValidationResult.Ok;\n      this.handleSuccessfulValidation(configuration);\n      this.handleUnsuccessfulValidation(configuration);\n\n      return of(toReturn);\n    }\n\n    // only do check if id_token returned, no always the case when using refresh tokens\n    if (callbackContext.authResult.id_token) {\n      const idTokenHeader = this.tokenHelperService.getHeaderFromToken(toReturn.idToken, false, configuration);\n\n      if (isCurrentFlowCodeFlow && !(toReturn.decodedIdToken.at_hash as string)) {\n        this.loggerService.logDebug(configuration, 'Code Flow active, and no at_hash in the id_token, skipping check!');\n      } else {\n        return this.tokenValidationService\n          .validateIdTokenAtHash(\n            toReturn.accessToken,\n            toReturn.decodedIdToken.at_hash,\n            idTokenHeader.alg, // 'RS256'\n            configuration\n          )\n          .pipe(\n            map((valid: boolean) => {\n              if (!valid || !toReturn.accessToken) {\n                this.loggerService.logWarning(configuration, 'authCallback incorrect at_hash');\n                toReturn.state = ValidationResult.IncorrectAtHash;\n                this.handleUnsuccessfulValidation(configuration);\n\n                return toReturn;\n              } else {\n                toReturn.authResponseIsValid = true;\n                toReturn.state = ValidationResult.Ok;\n                this.handleSuccessfulValidation(configuration);\n\n                return toReturn;\n              }\n            })\n          );\n      }\n    }\n\n    toReturn.authResponseIsValid = true;\n    toReturn.state = ValidationResult.Ok;\n    this.handleSuccessfulValidation(configuration);\n\n    return of(toReturn);\n  }\n\n  private isIdTokenAfterRefreshTokenRequestValid(\n    callbackContext: CallbackContext,\n    newIdToken: any,\n    configuration: OpenIdConfiguration\n  ): boolean {\n    const { useRefreshToken, disableRefreshIdTokenAuthTimeValidation } = configuration;\n\n    if (!useRefreshToken) {\n      return true;\n    }\n\n    if (!callbackContext.existingIdToken) {\n      return true;\n    }\n\n    const decodedIdToken = this.tokenHelperService.getPayloadFromToken(callbackContext.existingIdToken, false, configuration);\n\n    // Upon successful validation of the Refresh Token, the response body is the Token Response of Section 3.1.3.3\n    // except that it might not contain an id_token.\n\n    // If an ID Token is returned as a result of a token refresh request, the following requirements apply:\n\n    // its iss Claim Value MUST be the same as in the ID Token issued when the original authentication occurred,\n    if (decodedIdToken.iss !== newIdToken.iss) {\n      this.loggerService.logDebug(configuration, `iss do not match: ${decodedIdToken.iss} ${newIdToken.iss}`);\n\n      return false;\n    }\n    // its azp Claim Value MUST be the same as in the ID Token issued when the original authentication occurred;\n    //   if no azp Claim was present in the original ID Token, one MUST NOT be present in the new ID Token, and\n    // otherwise, the same rules apply as apply when issuing an ID Token at the time of the original authentication.\n    if (decodedIdToken.azp !== newIdToken.azp) {\n      this.loggerService.logDebug(configuration, `azp do not match: ${decodedIdToken.azp} ${newIdToken.azp}`);\n\n      return false;\n    }\n    // its sub Claim Value MUST be the same as in the ID Token issued when the original authentication occurred,\n    if (decodedIdToken.sub !== newIdToken.sub) {\n      this.loggerService.logDebug(configuration, `sub do not match: ${decodedIdToken.sub} ${newIdToken.sub}`);\n\n      return false;\n    }\n\n    // its aud Claim Value MUST be the same as in the ID Token issued when the original authentication occurred,\n    if (!this.equalityService.isStringEqualOrNonOrderedArrayEqual(decodedIdToken?.aud, newIdToken?.aud)) {\n      this.loggerService.logDebug(configuration, `aud in new id_token is not valid: '${decodedIdToken?.aud}' '${newIdToken.aud}'`);\n\n      return false;\n    }\n\n    if (disableRefreshIdTokenAuthTimeValidation) {\n      return true;\n    }\n\n    // its iat Claim MUST represent the time that the new ID Token is issued,\n    // if the ID Token contains an auth_time Claim, its value MUST represent the time of the original authentication\n    // - not the time that the new ID token is issued,\n    if (decodedIdToken.auth_time !== newIdToken.auth_time) {\n      this.loggerService.logDebug(configuration, `auth_time do not match: ${decodedIdToken.auth_time} ${newIdToken.auth_time}`);\n\n      return false;\n    }\n\n    return true;\n  }\n\n  private handleSuccessfulValidation(configuration: OpenIdConfiguration): void {\n    const { autoCleanStateAfterAuthentication } = configuration;\n\n    this.storagePersistenceService.write('authNonce', null, configuration);\n\n    if (autoCleanStateAfterAuthentication) {\n      this.storagePersistenceService.write('authStateControl', '', configuration);\n    }\n    this.loggerService.logDebug(configuration, 'authCallback token(s) validated, continue');\n  }\n\n  private handleUnsuccessfulValidation(configuration: OpenIdConfiguration): void {\n    const { autoCleanStateAfterAuthentication } = configuration;\n\n    this.storagePersistenceService.write('authNonce', null, configuration);\n\n    if (autoCleanStateAfterAuthentication) {\n      this.storagePersistenceService.write('authStateControl', '', configuration);\n    }\n    this.loggerService.logDebug(configuration, 'authCallback token(s) invalid');\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { AuthStateService } from '../../auth-state/auth-state.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StateValidationResult } from '../../validation/state-validation-result';\nimport { StateValidationService } from '../../validation/state-validation.service';\nimport { CallbackContext } from '../callback-context';\nimport { ResetAuthDataService } from '../reset-auth-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class StateValidationCallbackHandlerService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly stateValidationService: StateValidationService,\n    private readonly authStateService: AuthStateService,\n    private readonly resetAuthDataService: ResetAuthDataService,\n    @Inject(DOCUMENT) private readonly document: Document\n  ) {}\n\n  // STEP 4 All flows\n  callbackStateValidation(\n    callbackContext: CallbackContext,\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    return this.stateValidationService.getValidatedStateResult(callbackContext, configuration).pipe(\n      map((validationResult: StateValidationResult) => {\n        callbackContext.validationResult = validationResult;\n\n        if (validationResult.authResponseIsValid) {\n          this.authStateService.setAuthorizationData(validationResult.accessToken, callbackContext.authResult, configuration, allConfigs);\n\n          return callbackContext;\n        } else {\n          const errorMessage = `authorizedCallback, token(s) validation failed, resetting. Hash: ${this.document.location.hash}`;\n\n          this.loggerService.logWarning(configuration, errorMessage);\n          this.resetAuthDataService.resetAuthorizationData(configuration, allConfigs);\n          this.publishUnauthorizedState(callbackContext.validationResult, callbackContext.isRenewProcess);\n\n          throw new Error(errorMessage);\n        }\n      })\n    );\n  }\n\n  private publishUnauthorizedState(stateValidationResult: StateValidationResult, isRenewProcess: boolean): void {\n    this.authStateService.updateAndPublishAuthState({\n      isAuthenticated: false,\n      validationResult: stateValidationResult.state,\n      isRenewProcess,\n    });\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { AuthStateService } from '../../auth-state/auth-state.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { TokenValidationService } from '../../validation/token-validation.service';\nimport { CallbackContext } from '../callback-context';\nimport { FlowsDataService } from '../flows-data.service';\n\n@Injectable({ providedIn: 'root' })\nexport class RefreshSessionCallbackHandlerService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly authStateService: AuthStateService,\n    private readonly flowsDataService: FlowsDataService\n  ) {}\n\n  // STEP 1 Refresh session\n  refreshSessionWithRefreshTokens(config: OpenIdConfiguration): Observable<CallbackContext> {\n    const stateData = this.flowsDataService.getExistingOrCreateAuthStateControl(config);\n\n    this.loggerService.logDebug(config, 'RefreshSession created. Adding myautostate: ' + stateData);\n    const refreshToken = this.authStateService.getRefreshToken(config);\n    const idToken = this.authStateService.getIdToken(config);\n\n    if (refreshToken) {\n      const callbackContext = {\n        code: null,\n        refreshToken,\n        state: stateData,\n        sessionState: null,\n        authResult: null,\n        isRenewProcess: true,\n        jwtKeys: null,\n        validationResult: null,\n        existingIdToken: idToken,\n      };\n\n      this.loggerService.logDebug(config, 'found refresh code, obtaining new credentials with refresh code');\n      // Nonce is not used with refresh tokens; but Key cloak may send it anyway\n      this.flowsDataService.setNonce(TokenValidationService.refreshTokenNoncePlaceholder, config);\n\n      return of(callbackContext);\n    } else {\n      const errorMessage = 'no refresh token found, please login';\n\n      this.loggerService.logError(config, errorMessage);\n\n      return throwError(() => new Error(errorMessage));\n    }\n  }\n}\n","import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, of, throwError, timer } from 'rxjs';\nimport { catchError, mergeMap, retryWhen, switchMap } from 'rxjs/operators';\nimport { DataService } from '../../api/data.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { AuthResult, CallbackContext } from '../callback-context';\n\n@Injectable({ providedIn: 'root' })\nexport class RefreshTokenCallbackHandlerService {\n  constructor(\n    private readonly urlService: UrlService,\n    private readonly loggerService: LoggerService,\n    private readonly dataService: DataService,\n    private readonly storagePersistenceService: StoragePersistenceService\n  ) {}\n\n  // STEP 2 Refresh Token\n  refreshTokensRequestTokens(\n    callbackContext: CallbackContext,\n    config: OpenIdConfiguration,\n    customParamsRefresh?: { [key: string]: string | number | boolean }\n  ): Observable<CallbackContext> {\n    let headers: HttpHeaders = new HttpHeaders();\n\n    headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');\n\n    const authWellknownEndpoints = this.storagePersistenceService.read('authWellKnownEndPoints', config);\n    const tokenEndpoint = authWellknownEndpoints?.tokenEndpoint;\n\n    if (!tokenEndpoint) {\n      return throwError(() => new Error('Token Endpoint not defined'));\n    }\n\n    const data = this.urlService.createBodyForCodeFlowRefreshTokensRequest(callbackContext.refreshToken, config, customParamsRefresh);\n\n    return this.dataService.post(tokenEndpoint, data, config, headers).pipe(\n      switchMap((response: AuthResult) => {\n        this.loggerService.logDebug(config, 'token refresh response: ', response);\n\n        response.state = callbackContext.state;\n\n        callbackContext.authResult = response;\n\n        return of(callbackContext);\n      }),\n      retryWhen((error) => this.handleRefreshRetry(error, config)),\n      catchError((error) => {\n        const { authority } = config;\n        const errorMessage = `OidcService code request ${authority}`;\n\n        this.loggerService.logError(config, errorMessage, error);\n\n        return throwError(() => new Error(errorMessage));\n      })\n    );\n  }\n\n  private handleRefreshRetry(errors: Observable<any>, config: OpenIdConfiguration): Observable<any> {\n    return errors.pipe(\n      mergeMap((error) => {\n        // retry token refresh if there is no internet connection\n        if (error && error instanceof HttpErrorResponse && error.error instanceof ProgressEvent && error.error.type === 'error') {\n          const { authority, refreshTokenRetryInSeconds } = config;\n          const errorMessage = `OidcService code request ${authority} - no internet connection`;\n\n          this.loggerService.logWarning(config, errorMessage, error);\n\n          return timer(refreshTokenRetryInSeconds * 1000);\n        }\n\n        return throwError(() => error);\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { concatMap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from './callback-context';\nimport { CodeFlowCallbackHandlerService } from './callback-handling/code-flow-callback-handler.service';\nimport { HistoryJwtKeysCallbackHandlerService } from './callback-handling/history-jwt-keys-callback-handler.service';\nimport { ImplicitFlowCallbackHandlerService } from './callback-handling/implicit-flow-callback-handler.service';\nimport { RefreshSessionCallbackHandlerService } from './callback-handling/refresh-session-callback-handler.service';\nimport { RefreshTokenCallbackHandlerService } from './callback-handling/refresh-token-callback-handler.service';\nimport { StateValidationCallbackHandlerService } from './callback-handling/state-validation-callback-handler.service';\nimport { UserCallbackHandlerService } from './callback-handling/user-callback-handler.service';\n\n@Injectable({ providedIn: 'root' })\nexport class FlowsService {\n  constructor(\n    private readonly codeFlowCallbackHandlerService: CodeFlowCallbackHandlerService,\n    private readonly implicitFlowCallbackHandlerService: ImplicitFlowCallbackHandlerService,\n    private readonly historyJwtKeysCallbackHandlerService: HistoryJwtKeysCallbackHandlerService,\n    private readonly userHandlerService: UserCallbackHandlerService,\n    private readonly stateValidationCallbackHandlerService: StateValidationCallbackHandlerService,\n    private readonly refreshSessionCallbackHandlerService: RefreshSessionCallbackHandlerService,\n    private readonly refreshTokenCallbackHandlerService: RefreshTokenCallbackHandlerService\n  ) {}\n\n  processCodeFlowCallback(urlToCheck: string, config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): Observable<CallbackContext> {\n    return this.codeFlowCallbackHandlerService.codeFlowCallback(urlToCheck, config).pipe(\n      concatMap((callbackContext) => this.codeFlowCallbackHandlerService.codeFlowCodeRequest(callbackContext, config)),\n      concatMap((callbackContext) =>\n        this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) =>\n        this.stateValidationCallbackHandlerService.callbackStateValidation(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) => this.userHandlerService.callbackUser(callbackContext, config, allConfigs))\n    );\n  }\n\n  processSilentRenewCodeFlowCallback(\n    firstContext: CallbackContext,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    return this.codeFlowCallbackHandlerService.codeFlowCodeRequest(firstContext, config).pipe(\n      concatMap((callbackContext) =>\n        this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) =>\n        this.stateValidationCallbackHandlerService.callbackStateValidation(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) => this.userHandlerService.callbackUser(callbackContext, config, allConfigs))\n    );\n  }\n\n  processImplicitFlowCallback(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], hash?: string): Observable<CallbackContext> {\n    return this.implicitFlowCallbackHandlerService.implicitFlowCallback(config, allConfigs, hash).pipe(\n      concatMap((callbackContext) =>\n        this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) =>\n        this.stateValidationCallbackHandlerService.callbackStateValidation(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) => this.userHandlerService.callbackUser(callbackContext, config, allConfigs))\n    );\n  }\n\n  processRefreshToken(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    customParamsRefresh?: { [key: string]: string | number | boolean }\n  ): Observable<CallbackContext> {\n    return this.refreshSessionCallbackHandlerService.refreshSessionWithRefreshTokens(config).pipe(\n      concatMap((callbackContext) =>\n        this.refreshTokenCallbackHandlerService.refreshTokensRequestTokens(callbackContext, config, customParamsRefresh)\n      ),\n      concatMap((callbackContext) =>\n        this.historyJwtKeysCallbackHandlerService.callbackHistoryAndResetJwtKeys(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) =>\n        this.stateValidationCallbackHandlerService.callbackStateValidation(callbackContext, config, allConfigs)\n      ),\n      concatMap((callbackContext) => this.userHandlerService.callbackUser(callbackContext, config, allConfigs))\n    );\n  }\n}\n","import { Injectable, NgZone } from '@angular/core';\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class IntervalService {\n  runTokenValidationRunning = null;\n\n  constructor(private readonly zone: NgZone) {}\n\n  isTokenValidationRunning(): boolean {\n    return !!this.runTokenValidationRunning;\n  }\n\n  stopPeriodicTokenCheck(): void {\n    if (this.runTokenValidationRunning) {\n      this.runTokenValidationRunning.unsubscribe();\n      this.runTokenValidationRunning = null;\n    }\n  }\n\n  startPeriodicTokenCheck(repeatAfterSeconds: number): Observable<unknown> {\n    const millisecondsDelayBetweenTokenCheck = repeatAfterSeconds * 1000;\n\n    return new Observable((subscriber) => {\n      let intervalId;\n\n      this.zone.runOutsideAngular(() => {\n        intervalId = setInterval(() => this.zone.run(() => subscriber.next()), millisecondsDelayBetweenTokenCheck);\n      });\n\n      return (): void => {\n        clearInterval(intervalId);\n      };\n    });\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, tap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsDataService } from '../flows/flows-data.service';\nimport { FlowsService } from '../flows/flows.service';\nimport { IntervalService } from './interval.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ImplicitFlowCallbackService {\n  constructor(\n    private readonly flowsService: FlowsService,\n    private readonly router: Router,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly intervalService: IntervalService\n  ) {}\n\n  authenticatedImplicitFlowCallback(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    hash?: string\n  ): Observable<CallbackContext> {\n    const isRenewProcess = this.flowsDataService.isSilentRenewRunning(config);\n    const { triggerAuthorizationResultEvent, postLoginRoute, unauthorizedRoute } = config;\n\n    return this.flowsService.processImplicitFlowCallback(config, allConfigs, hash).pipe(\n      tap((callbackContext) => {\n        if (!triggerAuthorizationResultEvent && !callbackContext.isRenewProcess) {\n          this.router.navigateByUrl(postLoginRoute);\n        }\n      }),\n      catchError((error) => {\n        this.flowsDataService.resetSilentRenewRunning(config);\n        this.intervalService.stopPeriodicTokenCheck();\n        if (!triggerAuthorizationResultEvent && !isRenewProcess) {\n          this.router.navigateByUrl(unauthorizedRoute);\n        }\n\n        return throwError(() => new Error(error));\n      })\n    );\n  }\n}\n","import { HttpParams } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject, throwError } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { ImplicitFlowCallbackService } from '../callback/implicit-flow-callback.service';\nimport { IntervalService } from '../callback/interval.service';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsDataService } from '../flows/flows-data.service';\nimport { FlowsService } from '../flows/flows.service';\nimport { ResetAuthDataService } from '../flows/reset-auth-data.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { ValidationResult } from '../validation/validation-result';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { IFrameService } from './existing-iframe.service';\n\nconst IFRAME_FOR_SILENT_RENEW_IDENTIFIER = 'myiFrameForSilentRenew';\n\n@Injectable({ providedIn: 'root' })\nexport class SilentRenewService {\n  private readonly refreshSessionWithIFrameCompletedInternal$ = new Subject<CallbackContext>();\n\n  get refreshSessionWithIFrameCompleted$(): Observable<CallbackContext> {\n    return this.refreshSessionWithIFrameCompletedInternal$.asObservable();\n  }\n\n  constructor(\n    private readonly iFrameService: IFrameService,\n    private readonly flowsService: FlowsService,\n    private readonly resetAuthDataService: ResetAuthDataService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly authStateService: AuthStateService,\n    private readonly loggerService: LoggerService,\n    private readonly flowHelper: FlowHelper,\n    private readonly implicitFlowCallbackService: ImplicitFlowCallbackService,\n    private readonly intervalService: IntervalService\n  ) {}\n\n  getOrCreateIframe(config: OpenIdConfiguration): HTMLIFrameElement {\n    const existingIframe = this.getExistingIframe();\n\n    if (!existingIframe) {\n      return this.iFrameService.addIFrameToWindowBody(IFRAME_FOR_SILENT_RENEW_IDENTIFIER, config);\n    }\n\n    return existingIframe;\n  }\n\n  isSilentRenewConfigured(configuration: OpenIdConfiguration): boolean {\n    const { useRefreshToken, silentRenew } = configuration;\n\n    return !useRefreshToken && silentRenew;\n  }\n\n  codeFlowCallbackSilentRenewIframe(\n    urlParts: string[],\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    const params = new HttpParams({\n      fromString: urlParts[1],\n    });\n\n    const error = params.get('error');\n\n    if (error) {\n      this.authStateService.updateAndPublishAuthState({\n        isAuthenticated: false,\n        validationResult: ValidationResult.LoginRequired,\n        isRenewProcess: true,\n      });\n      this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n      this.flowsDataService.setNonce('', config);\n      this.intervalService.stopPeriodicTokenCheck();\n\n      return throwError(() => new Error(error));\n    }\n\n    const code = params.get('code');\n    const state = params.get('state');\n    const sessionState = params.get('session_state');\n\n    const callbackContext = {\n      code,\n      refreshToken: null,\n      state,\n      sessionState,\n      authResult: null,\n      isRenewProcess: true,\n      jwtKeys: null,\n      validationResult: null,\n      existingIdToken: null,\n    };\n\n    return this.flowsService.processSilentRenewCodeFlowCallback(callbackContext, config, allConfigs).pipe(\n      catchError(() => {\n        this.intervalService.stopPeriodicTokenCheck();\n        this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n\n        return throwError(() => new Error(error));\n      })\n    );\n  }\n\n  silentRenewEventHandler(e: CustomEvent, config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.loggerService.logDebug(config, 'silentRenewEventHandler');\n    if (!e.detail) {\n      return;\n    }\n\n    let callback$: Observable<CallbackContext>;\n    const isCodeFlow = this.flowHelper.isCurrentFlowCodeFlow(config);\n\n    if (isCodeFlow) {\n      const urlParts = e.detail.toString().split('?');\n\n      callback$ = this.codeFlowCallbackSilentRenewIframe(urlParts, config, allConfigs);\n    } else {\n      callback$ = this.implicitFlowCallbackService.authenticatedImplicitFlowCallback(config, allConfigs, e.detail);\n    }\n\n    callback$.subscribe({\n      next: (callbackContext) => {\n        this.refreshSessionWithIFrameCompletedInternal$.next(callbackContext);\n        this.flowsDataService.resetSilentRenewRunning(config);\n      },\n      error: (err: any) => {\n        this.loggerService.logError(config, 'Error: ' + err);\n        this.refreshSessionWithIFrameCompletedInternal$.next(null);\n        this.flowsDataService.resetSilentRenewRunning(config);\n      },\n    });\n  }\n\n  private getExistingIframe(): HTMLIFrameElement {\n    return this.iFrameService.getExistingIFrame(IFRAME_FOR_SILENT_RENEW_IDENTIFIER);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, tap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsDataService } from '../flows/flows-data.service';\nimport { FlowsService } from '../flows/flows.service';\nimport { IntervalService } from './interval.service';\n\n@Injectable({ providedIn: 'root' })\nexport class CodeFlowCallbackService {\n  constructor(\n    private readonly flowsService: FlowsService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly intervalService: IntervalService,\n    private readonly router: Router\n  ) {}\n\n  authenticatedCallbackWithCode(\n    urlToCheck: string,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    const isRenewProcess = this.flowsDataService.isSilentRenewRunning(config);\n    const { triggerAuthorizationResultEvent, postLoginRoute, unauthorizedRoute } = config;\n\n    return this.flowsService.processCodeFlowCallback(urlToCheck, config, allConfigs).pipe(\n      tap((callbackContext) => {\n        this.flowsDataService.resetCodeFlowInProgress(config);\n        if (!triggerAuthorizationResultEvent && !callbackContext.isRenewProcess) {\n          this.router.navigateByUrl(postLoginRoute);\n        }\n      }),\n      catchError((error) => {\n        this.flowsDataService.resetSilentRenewRunning(config);\n        this.flowsDataService.resetCodeFlowInProgress(config);\n        this.intervalService.stopPeriodicTokenCheck();\n        if (!triggerAuthorizationResultEvent && !isRenewProcess) {\n          this.router.navigateByUrl(unauthorizedRoute);\n        }\n\n        return throwError(() => new Error(error));\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { UrlService } from '../utils/url/url.service';\nimport { CodeFlowCallbackService } from './code-flow-callback.service';\nimport { ImplicitFlowCallbackService } from './implicit-flow-callback.service';\n\n@Injectable({ providedIn: 'root' })\nexport class CallbackService {\n  private readonly stsCallbackInternal$ = new Subject<void>();\n\n  get stsCallback$(): Observable<unknown> {\n    return this.stsCallbackInternal$.asObservable();\n  }\n\n  constructor(\n    private readonly urlService: UrlService,\n    private readonly flowHelper: FlowHelper,\n    private readonly implicitFlowCallbackService: ImplicitFlowCallbackService,\n    private readonly codeFlowCallbackService: CodeFlowCallbackService\n  ) {}\n\n  isCallback(currentUrl: string): boolean {\n    return this.urlService.isCallbackFromSts(currentUrl);\n  }\n\n  handleCallbackAndFireEvents(\n    currentCallbackUrl: string,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<CallbackContext> {\n    let callback$: Observable<any>;\n\n    if (this.flowHelper.isCurrentFlowCodeFlow(config)) {\n      callback$ = this.codeFlowCallbackService.authenticatedCallbackWithCode(currentCallbackUrl, config, allConfigs);\n    } else if (this.flowHelper.isCurrentFlowAnyImplicitFlow(config)) {\n      if (currentCallbackUrl?.includes('#')) {\n        let hash = currentCallbackUrl.substring(currentCallbackUrl.indexOf('#') + 1);\n\n        callback$ = this.implicitFlowCallbackService.authenticatedImplicitFlowCallback(config, allConfigs, hash);\n      } else {\n        callback$ = this.implicitFlowCallbackService.authenticatedImplicitFlowCallback(config, allConfigs);\n      }\n    }\n\n    return callback$.pipe(tap(() => this.stsCallbackInternal$.next()));\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { map, retry } from 'rxjs/operators';\nimport { DataService } from '../../api/data.service';\nimport { LoggerService } from '../../logging/logger.service';\nimport { OpenIdConfiguration } from '../openid-configuration';\nimport { AuthWellKnownEndpoints } from './auth-well-known-endpoints';\n\nconst WELL_KNOWN_SUFFIX = `/.well-known/openid-configuration`;\n\n@Injectable({ providedIn: 'root' })\nexport class AuthWellKnownDataService {\n  constructor(private readonly http: DataService, private readonly loggerService: LoggerService) {}\n\n  getWellKnownEndPointsForConfig(config: OpenIdConfiguration): Observable<AuthWellKnownEndpoints> {\n    const { authWellknownEndpointUrl } = config;\n\n    if (!authWellknownEndpointUrl) {\n      const errorMessage = 'no authWellknownEndpoint given!';\n\n      this.loggerService.logError(config, errorMessage);\n\n      return throwError(() => new Error(errorMessage));\n    }\n\n    return this.getWellKnownDocument(authWellknownEndpointUrl, config).pipe(\n      map(\n        (wellKnownEndpoints) =>\n          ({\n            issuer: wellKnownEndpoints.issuer,\n            jwksUri: wellKnownEndpoints.jwks_uri,\n            authorizationEndpoint: wellKnownEndpoints.authorization_endpoint,\n            tokenEndpoint: wellKnownEndpoints.token_endpoint,\n            userInfoEndpoint: wellKnownEndpoints.userinfo_endpoint,\n            endSessionEndpoint: wellKnownEndpoints.end_session_endpoint,\n            checkSessionIframe: wellKnownEndpoints.check_session_iframe,\n            revocationEndpoint: wellKnownEndpoints.revocation_endpoint,\n            introspectionEndpoint: wellKnownEndpoints.introspection_endpoint,\n            parEndpoint: wellKnownEndpoints.pushed_authorization_request_endpoint,\n          } as AuthWellKnownEndpoints)\n      )\n    );\n  }\n\n  private getWellKnownDocument(wellKnownEndpoint: string, config: OpenIdConfiguration): Observable<any> {\n    let url = wellKnownEndpoint;\n\n    if (!wellKnownEndpoint.includes(WELL_KNOWN_SUFFIX)) {\n      url = `${wellKnownEndpoint}${WELL_KNOWN_SUFFIX}`;\n    }\n\n    return this.http.get<any>(url, config).pipe(retry(2));\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { catchError, tap } from 'rxjs/operators';\nimport { EventTypes } from '../../public-events/event-types';\nimport { PublicEventsService } from '../../public-events/public-events.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { OpenIdConfiguration } from '../openid-configuration';\nimport { AuthWellKnownDataService } from './auth-well-known-data.service';\nimport { AuthWellKnownEndpoints } from './auth-well-known-endpoints';\n\n@Injectable({ providedIn: 'root' })\nexport class AuthWellKnownService {\n  constructor(\n    private readonly dataService: AuthWellKnownDataService,\n    private readonly publicEventsService: PublicEventsService,\n    private readonly storagePersistenceService: StoragePersistenceService\n  ) {}\n\n  storeWellKnownEndpoints(config: OpenIdConfiguration, mappedWellKnownEndpoints: AuthWellKnownEndpoints): void {\n    this.storagePersistenceService.write('authWellKnownEndPoints', mappedWellKnownEndpoints, config);\n  }\n\n  queryAndStoreAuthWellKnownEndPoints(config: OpenIdConfiguration): Observable<AuthWellKnownEndpoints> {\n    const alreadySavedWellKnownEndpoints = this.storagePersistenceService.read('authWellKnownEndPoints', config);\n\n    if (!!alreadySavedWellKnownEndpoints) {\n      return of(alreadySavedWellKnownEndpoints);\n    }\n\n    return this.dataService.getWellKnownEndPointsForConfig(config).pipe(\n      tap((mappedWellKnownEndpoints) => this.storeWellKnownEndpoints(config, mappedWellKnownEndpoints)),\n      catchError((error) => {\n        this.publicEventsService.fireEvent(EventTypes.ConfigLoadingFailed, null);\n\n        return throwError(() => new Error(error));\n      })\n    );\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { LoggerService } from '../logging/logger.service';\nimport { UrlService } from '../utils/url/url.service';\nimport { SilentRenewService } from './silent-renew.service';\n\n@Injectable({ providedIn: 'root' })\nexport class RefreshSessionIframeService {\n  private readonly renderer: Renderer2;\n\n  constructor(\n    @Inject(DOCUMENT) private readonly document: Document,\n    private readonly loggerService: LoggerService,\n    private readonly urlService: UrlService,\n    private readonly silentRenewService: SilentRenewService,\n    rendererFactory: RendererFactory2\n  ) {\n    this.renderer = rendererFactory.createRenderer(null, null);\n  }\n\n  refreshSessionWithIframe(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    customParams?: { [key: string]: string | number | boolean }\n  ): Observable<boolean> {\n    this.loggerService.logDebug(config, 'BEGIN refresh session Authorize Iframe renew');\n\n    return this.urlService.getRefreshSessionSilentRenewUrl(config, customParams).pipe(\n      switchMap((url) => {\n        return this.sendAuthorizeRequestUsingSilentRenew(url, config, allConfigs);\n      })\n    );\n  }\n\n  private sendAuthorizeRequestUsingSilentRenew(\n    url: string,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<boolean> {\n    const sessionIframe = this.silentRenewService.getOrCreateIframe(config);\n\n    this.initSilentRenewRequest(config, allConfigs);\n    this.loggerService.logDebug(config, 'sendAuthorizeRequestUsingSilentRenew for URL:' + url);\n\n    return new Observable((observer) => {\n      const onLoadHandler = (): void => {\n        sessionIframe.removeEventListener('load', onLoadHandler);\n        this.loggerService.logDebug(config, 'removed event listener from IFrame');\n        observer.next(true);\n        observer.complete();\n      };\n\n      sessionIframe.addEventListener('load', onLoadHandler);\n      sessionIframe.contentWindow.location.replace(url);\n    });\n  }\n\n  private initSilentRenewRequest(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    const instanceId = Math.random();\n\n    const initDestroyHandler = this.renderer.listen('window', 'oidc-silent-renew-init', (e: CustomEvent) => {\n      if (e.detail !== instanceId) {\n        initDestroyHandler();\n        renewDestroyHandler();\n      }\n    });\n    const renewDestroyHandler = this.renderer.listen('window', 'oidc-silent-renew-message', (e) =>\n      this.silentRenewService.silentRenewEventHandler(e, config, allConfigs)\n    );\n\n    this.document.defaultView.dispatchEvent(\n      new CustomEvent('oidc-silent-renew-init', {\n        detail: instanceId,\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, finalize } from 'rxjs/operators';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsService } from '../flows/flows.service';\nimport { ResetAuthDataService } from '../flows/reset-auth-data.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { IntervalService } from './interval.service';\n\n@Injectable({ providedIn: 'root' })\nexport class RefreshSessionRefreshTokenService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly resetAuthDataService: ResetAuthDataService,\n    private readonly flowsService: FlowsService,\n    private readonly intervalService: IntervalService\n  ) {}\n\n  refreshSessionWithRefreshTokens(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    customParamsRefresh?: { [key: string]: string | number | boolean }\n  ): Observable<CallbackContext> {\n    this.loggerService.logDebug(config, 'BEGIN refresh session Authorize');\n    let refreshTokenFailed = false;\n\n    return this.flowsService.processRefreshToken(config, allConfigs, customParamsRefresh).pipe(\n      catchError((error) => {\n        this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n        refreshTokenFailed = true;\n\n        return throwError(() => new Error(error));\n      }),\n      finalize(() => refreshTokenFailed && this.intervalService.stopPeriodicTokenCheck())\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { forkJoin, Observable, of, throwError, TimeoutError, timer } from 'rxjs';\nimport { map, mergeMap, retryWhen, switchMap, take, timeout } from 'rxjs/operators';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { AuthWellKnownService } from '../config/auth-well-known/auth-well-known.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsDataService } from '../flows/flows-data.service';\nimport { RefreshSessionIframeService } from '../iframe/refresh-session-iframe.service';\nimport { SilentRenewService } from '../iframe/silent-renew.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { LoginResponse } from '../login/login-response';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { UserService } from '../user-data/user.service';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { RefreshSessionRefreshTokenService } from './refresh-session-refresh-token.service';\n\nexport const MAX_RETRY_ATTEMPTS = 3;\n@Injectable({ providedIn: 'root' })\nexport class RefreshSessionService {\n  constructor(\n    private readonly flowHelper: FlowHelper,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly loggerService: LoggerService,\n    private readonly silentRenewService: SilentRenewService,\n    private readonly authStateService: AuthStateService,\n    private readonly authWellKnownService: AuthWellKnownService,\n    private readonly refreshSessionIframeService: RefreshSessionIframeService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly refreshSessionRefreshTokenService: RefreshSessionRefreshTokenService,\n    private readonly userService: UserService\n  ) {}\n\n  userForceRefreshSession(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    extraCustomParams?: { [key: string]: string | number | boolean }\n  ): Observable<LoginResponse> {\n    this.persistCustomParams(extraCustomParams, config);\n\n    return this.forceRefreshSession(config, allConfigs, extraCustomParams);\n  }\n\n  forceRefreshSession(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    extraCustomParams?: { [key: string]: string | number | boolean }\n  ): Observable<LoginResponse> {\n    const { customParamsRefreshTokenRequest, configId } = config;\n    const mergedParams = { ...customParamsRefreshTokenRequest, ...extraCustomParams };\n\n    if (this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(config)) {\n      return this.startRefreshSession(config, allConfigs, mergedParams).pipe(\n        map(() => {\n          const isAuthenticated = this.authStateService.areAuthStorageTokensValid(config);\n\n          if (isAuthenticated) {\n            return {\n              idToken: this.authStateService.getIdToken(config),\n              accessToken: this.authStateService.getAccessToken(config),\n              userData: this.userService.getUserDataFromStore(config),\n              isAuthenticated,\n              configId,\n            } as LoginResponse;\n          }\n\n          return null;\n        })\n      );\n    }\n\n    const { silentRenewTimeoutInSeconds } = config;\n    const timeOutTime = silentRenewTimeoutInSeconds * 1000;\n\n    return forkJoin([\n      this.startRefreshSession(config, allConfigs, extraCustomParams),\n      this.silentRenewService.refreshSessionWithIFrameCompleted$.pipe(take(1)),\n    ]).pipe(\n      timeout(timeOutTime),\n      retryWhen(this.timeoutRetryStrategy.bind(this)),\n      map(([_, callbackContext]) => {\n        const isAuthenticated = this.authStateService.areAuthStorageTokensValid(config);\n\n        if (isAuthenticated) {\n          return {\n            idToken: callbackContext?.authResult?.id_token,\n            accessToken: callbackContext?.authResult?.access_token,\n            userData: this.userService.getUserDataFromStore(config),\n            isAuthenticated,\n            configId,\n          };\n        }\n\n        return null;\n      })\n    );\n  }\n\n  private persistCustomParams(extraCustomParams: { [key: string]: string | number | boolean }, config: OpenIdConfiguration): void {\n    const { useRefreshToken } = config;\n\n    if (extraCustomParams) {\n      if (useRefreshToken) {\n        this.storagePersistenceService.write('storageCustomParamsRefresh', extraCustomParams, config);\n      } else {\n        this.storagePersistenceService.write('storageCustomParamsAuthRequest', extraCustomParams, config);\n      }\n    }\n  }\n\n  private startRefreshSession(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    extraCustomParams?: { [key: string]: string | number | boolean }\n  ): Observable<boolean | CallbackContext | null> {\n    const isSilentRenewRunning = this.flowsDataService.isSilentRenewRunning(config);\n\n    this.loggerService.logDebug(config, `Checking: silentRenewRunning: ${isSilentRenewRunning}`);\n    const shouldBeExecuted = !isSilentRenewRunning;\n\n    if (!shouldBeExecuted) {\n      return of(null);\n    }\n\n    return this.authWellKnownService.queryAndStoreAuthWellKnownEndPoints(config).pipe(\n      switchMap(() => {\n        this.flowsDataService.setSilentRenewRunning(config);\n\n        if (this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(config)) {\n          // Refresh Session using Refresh tokens\n          return this.refreshSessionRefreshTokenService.refreshSessionWithRefreshTokens(config, allConfigs, extraCustomParams);\n        }\n\n        return this.refreshSessionIframeService.refreshSessionWithIframe(config, allConfigs, extraCustomParams);\n      })\n    );\n  }\n\n  private timeoutRetryStrategy(errorAttempts: Observable<any>, config: OpenIdConfiguration): Observable<number> {\n    return errorAttempts.pipe(\n      mergeMap((error, index) => {\n        const scalingDuration = 1000;\n        const currentAttempt = index + 1;\n\n        if (!(error instanceof TimeoutError) || currentAttempt > MAX_RETRY_ATTEMPTS) {\n          return throwError(() => new Error(error));\n        }\n\n        this.loggerService.logDebug(config, `forceRefreshSession timeout. Attempt #${currentAttempt}`);\n\n        this.flowsDataService.resetSilentRenewRunning(config);\n\n        return timer(currentAttempt * scalingDuration);\n      })\n    );\n  }\n}\n","import { LogLevel } from '../logging/log-level';\nimport { OpenIdConfiguration } from './openid-configuration';\n\nexport const DEFAULT_CONFIG: OpenIdConfiguration = {\n  authority: 'https://please_set',\n  authWellknownEndpointUrl: '',\n  authWellknownEndpoints: null,\n  redirectUrl: 'https://please_set',\n  clientId: 'please_set',\n  responseType: 'code',\n  scope: 'openid email profile',\n  hdParam: '',\n  postLogoutRedirectUri: 'https://please_set',\n  startCheckSession: false,\n  silentRenew: false,\n  silentRenewUrl: 'https://please_set',\n  silentRenewTimeoutInSeconds: 20,\n  renewTimeBeforeTokenExpiresInSeconds: 0,\n  useRefreshToken: false,\n  usePushedAuthorisationRequests: false,\n  ignoreNonceAfterRefresh: false,\n  postLoginRoute: '/',\n  forbiddenRoute: '/forbidden',\n  unauthorizedRoute: '/unauthorized',\n  autoUserInfo: true,\n  autoCleanStateAfterAuthentication: true,\n  triggerAuthorizationResultEvent: false,\n  logLevel: LogLevel.Warn,\n  issValidationOff: false,\n  historyCleanupOff: false,\n  maxIdTokenIatOffsetAllowedInSeconds: 120,\n  disableIatOffsetValidation: false,\n  customParamsAuthRequest: {},\n  customParamsRefreshTokenRequest: {},\n  customParamsEndSessionRequest: {},\n  customParamsCodeRequest: {},\n  disableRefreshIdTokenAuthTimeValidation: false,\n  triggerRefreshWhenIdTokenExpired: true,\n  tokenRefreshInSeconds: 4,\n  refreshTokenRetryInSeconds: 3,\n  ngswBypass: false,\n};\n","import { OpenIdConfiguration } from '../openid-configuration';\n\nexport interface Rule {\n  validate(passedConfig: OpenIdConfiguration): RuleValidationResult;\n}\n\nexport interface RuleValidationResult {\n  result: boolean;\n  messages: string[];\n  level: Level;\n}\n\nexport const POSITIVE_VALIDATION_RESULT = {\n  result: true,\n  messages: [],\n  level: null,\n};\n\nexport type Level = 'warning' | 'error';\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nexport const ensureAuthority = (passedConfig: OpenIdConfiguration): RuleValidationResult => {\n  if (!passedConfig.authority) {\n    return {\n      result: false,\n      messages: ['The authority URL MUST be provided in the configuration! '],\n      level: 'error',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nexport const ensureClientId = (passedConfig: OpenIdConfiguration): RuleValidationResult => {\n  if (!passedConfig.clientId) {\n    return {\n      result: false,\n      messages: ['The clientId is required and missing from your config!'],\n      level: 'error',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nconst createIdentifierToCheck = (passedConfig: OpenIdConfiguration): string => {\n  if (!passedConfig) {\n    return null;\n  }\n\n  const { authority, clientId, scope } = passedConfig;\n\n  return `${authority}${clientId}${scope}`;\n};\n\nconst arrayHasDuplicates = (array: string[]): boolean => new Set(array).size !== array.length;\n\nexport const ensureNoDuplicatedConfigsRule = (passedConfigs: OpenIdConfiguration[]): RuleValidationResult => {\n  const allIdentifiers = passedConfigs.map((x) => createIdentifierToCheck(x));\n\n  const someAreNull = allIdentifiers.some((x) => x === null);\n\n  if (someAreNull) {\n    return {\n      result: false,\n      messages: [`Please make sure you add an object with a 'config' property: ....({ config }) instead of ...(config)`],\n      level: 'error',\n    };\n  }\n\n  const hasDuplicates = arrayHasDuplicates(allIdentifiers);\n\n  if (hasDuplicates) {\n    return {\n      result: false,\n      messages: ['You added multiple configs with the same authority, clientId and scope'],\n      level: 'warning',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nexport const ensureRedirectRule = (passedConfig: OpenIdConfiguration): RuleValidationResult => {\n  if (!passedConfig.redirectUrl) {\n    return {\n      result: false,\n      messages: ['The redirectUrl is required and missing from your config'],\n      level: 'error',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nexport const ensureSilentRenewUrlWhenNoRefreshTokenUsed = (passedConfig: OpenIdConfiguration): RuleValidationResult => {\n  const usesSilentRenew = passedConfig.silentRenew;\n  const usesRefreshToken = passedConfig.useRefreshToken;\n  const hasSilentRenewUrl = passedConfig.silentRenewUrl;\n\n  if (usesSilentRenew && !usesRefreshToken && !hasSilentRenewUrl) {\n    return {\n      result: false,\n      messages: ['Please provide a silent renew URL if using renew and not refresh tokens'],\n      level: 'error',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { OpenIdConfiguration } from '../../openid-configuration';\nimport { POSITIVE_VALIDATION_RESULT, RuleValidationResult } from '../rule';\n\nexport const useOfflineScopeWithSilentRenew = (passedConfig: OpenIdConfiguration): RuleValidationResult => {\n  const hasRefreshToken = passedConfig.useRefreshToken;\n  const hasSilentRenew = passedConfig.silentRenew;\n  const scope = passedConfig.scope || '';\n  const hasOfflineScope = scope.split(' ').includes('offline_access');\n\n  if (hasRefreshToken && hasSilentRenew && !hasOfflineScope) {\n    return {\n      result: false,\n      messages: ['When using silent renew and refresh tokens please set the `offline_access` scope'],\n      level: 'warning',\n    };\n  }\n\n  return POSITIVE_VALIDATION_RESULT;\n};\n","import { ensureAuthority } from './ensure-authority.rule';\nimport { ensureClientId } from './ensure-clientId.rule';\nimport { ensureNoDuplicatedConfigsRule } from './ensure-no-duplicated-configs.rule';\nimport { ensureRedirectRule } from './ensure-redirect-url.rule';\nimport { ensureSilentRenewUrlWhenNoRefreshTokenUsed } from './ensure-silentRenewUrl-with-no-refreshtokens.rule';\nimport { useOfflineScopeWithSilentRenew } from './use-offline-scope-with-silent-renew.rule';\n\nexport const allRules = [\n  ensureAuthority,\n  useOfflineScopeWithSilentRenew,\n  ensureRedirectRule,\n  ensureClientId,\n  ensureSilentRenewUrlWhenNoRefreshTokenUsed,\n];\n\nexport const allMultipleConfigRules = [ensureNoDuplicatedConfigsRule];\n","import { Injectable } from '@angular/core';\nimport { LoggerService } from '../../logging/logger.service';\nimport { OpenIdConfiguration } from '../openid-configuration';\nimport { Level, RuleValidationResult } from './rule';\nimport { allRules, allMultipleConfigRules } from './rules';\n\n@Injectable({ providedIn: 'root' })\nexport class ConfigValidationService {\n  constructor(private readonly loggerService: LoggerService) {}\n\n  validateConfigs(passedConfigs: OpenIdConfiguration[]): boolean {\n    return this.validateConfigsInternal(passedConfigs ?? [], allMultipleConfigRules);\n  }\n\n  validateConfig(passedConfig: OpenIdConfiguration): boolean {\n    return this.validateConfigInternal(passedConfig, allRules);\n  }\n\n  private validateConfigsInternal(passedConfigs: OpenIdConfiguration[], allRulesToUse: any[]): boolean {\n    const allValidationResults = allRulesToUse.map((rule) => rule(passedConfigs));\n\n    let overallErrorCount = 0;\n\n    passedConfigs.forEach((passedConfig) => {\n      const errorCount = this.processValidationResultsAndGetErrorCount(allValidationResults, passedConfig);\n\n      overallErrorCount += errorCount;\n    });\n\n    return overallErrorCount === 0;\n  }\n\n  private validateConfigInternal(passedConfig: OpenIdConfiguration, allRulesToUse: any[]): boolean {\n    const allValidationResults = allRulesToUse.map((rule) => rule(passedConfig));\n\n    const errorCount = this.processValidationResultsAndGetErrorCount(allValidationResults, passedConfig);\n\n    return errorCount === 0;\n  }\n\n  private processValidationResultsAndGetErrorCount(allValidationResults: RuleValidationResult[], config: OpenIdConfiguration): number {\n    const allMessages = allValidationResults.filter((x) => x.messages.length > 0);\n    const allErrorMessages = this.getAllMessagesOfType('error', allMessages);\n    const allWarnings = this.getAllMessagesOfType('warning', allMessages);\n\n    allErrorMessages.forEach((message) => this.loggerService.logError(config, message));\n    allWarnings.forEach((message) => this.loggerService.logWarning(config, message));\n\n    return allErrorMessages.length;\n  }\n\n  private getAllMessagesOfType(type: Level, results: RuleValidationResult[]): string[] {\n    const allMessages = results.filter((x) => x.level === type).map((result) => result.messages);\n\n    return allMessages.reduce((acc, val) => acc.concat(val), []);\n  }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class PlatformProvider {\n  isBrowser(): boolean {\n    return isPlatformBrowser(this.platformId);\n  }\n\n  constructor(@Inject(PLATFORM_ID) private readonly platformId: string) {}\n}\n","import { Injectable } from '@angular/core';\nimport { forkJoin, Observable, of } from 'rxjs';\nimport { concatMap, map } from 'rxjs/operators';\nimport { LoggerService } from '../logging/logger.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { PlatformProvider } from '../utils/platform-provider/platform.provider';\nimport { AuthWellKnownService } from './auth-well-known/auth-well-known.service';\nimport { DEFAULT_CONFIG } from './default-config';\nimport { StsConfigLoader } from './loader/config-loader';\nimport { OpenIdConfiguration } from './openid-configuration';\nimport { ConfigValidationService } from './validation/config-validation.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ConfigurationService {\n  private configsInternal: Record<string, OpenIdConfiguration> = {};\n\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly publicEventsService: PublicEventsService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly configValidationService: ConfigValidationService,\n    private readonly platformProvider: PlatformProvider,\n    private readonly authWellKnownService: AuthWellKnownService,\n    private readonly loader: StsConfigLoader\n  ) {}\n\n  hasManyConfigs(): boolean {\n    return Object.keys(this.configsInternal).length > 1;\n  }\n\n  getAllConfigurations(): OpenIdConfiguration[] {\n    return Object.values(this.configsInternal);\n  }\n\n  getOpenIDConfiguration(configId?: string): Observable<OpenIdConfiguration> {\n    if (this.configsAlreadySaved()) {\n      return of(this.getConfig(configId));\n    }\n\n    return this.getOpenIDConfigurations(configId).pipe(map((result) => result.currentConfig));\n  }\n\n  getOpenIDConfigurations(configId?: string): Observable<{ allConfigs; currentConfig }> {\n    return this.loadConfigs().pipe(\n      concatMap((allConfigs) => this.prepareAndSaveConfigs(allConfigs)),\n      map((allPreparedConfigs) => ({\n        allConfigs: allPreparedConfigs,\n        currentConfig: this.getConfig(configId),\n      }))\n    );\n  }\n\n  hasAtLeastOneConfig(): boolean {\n    return Object.keys(this.configsInternal).length > 0;\n  }\n\n  private saveConfig(readyConfig: OpenIdConfiguration): void {\n    const { configId } = readyConfig;\n\n    this.configsInternal[configId] = readyConfig;\n  }\n\n  private loadConfigs(): Observable<OpenIdConfiguration[]> {\n    return this.loader.loadConfigs();\n  }\n\n  private configsAlreadySaved(): boolean {\n    return this.hasAtLeastOneConfig();\n  }\n\n  private getConfig(configId: string): OpenIdConfiguration {\n    if (!!configId) {\n      return this.configsInternal[configId] || null;\n    }\n\n    const [, value] = Object.entries(this.configsInternal)[0] || [[null, null]];\n\n    return value || null;\n  }\n\n  private prepareAndSaveConfigs(passedConfigs: OpenIdConfiguration[]): Observable<OpenIdConfiguration[]> {\n    if (!this.configValidationService.validateConfigs(passedConfigs)) {\n      return of(null);\n    }\n\n    this.createUniqueIds(passedConfigs);\n    const allHandleConfigs$ = passedConfigs.map((x) => this.handleConfig(x));\n\n    return forkJoin(allHandleConfigs$);\n  }\n\n  private createUniqueIds(passedConfigs: OpenIdConfiguration[]): void {\n    passedConfigs.forEach((config, index) => {\n      if (!config.configId) {\n        config.configId = `${index}-${config.clientId}`;\n      }\n    });\n  }\n\n  private handleConfig(passedConfig: OpenIdConfiguration): Observable<OpenIdConfiguration> {\n    if (!this.configValidationService.validateConfig(passedConfig)) {\n      this.loggerService.logError(passedConfig, 'Validation of config rejected with errors. Config is NOT set.');\n\n      return of(null);\n    }\n\n    if (!passedConfig.authWellknownEndpointUrl) {\n      passedConfig.authWellknownEndpointUrl = passedConfig.authority;\n    }\n\n    const usedConfig = this.prepareConfig(passedConfig);\n\n    this.saveConfig(usedConfig);\n\n    const configWithAuthWellKnown = this.enhanceConfigWithWellKnownEndpoint(usedConfig);\n\n    this.publicEventsService.fireEvent<OpenIdConfiguration>(EventTypes.ConfigLoaded, configWithAuthWellKnown);\n\n    return of(usedConfig);\n  }\n\n  private enhanceConfigWithWellKnownEndpoint(configuration: OpenIdConfiguration): OpenIdConfiguration {\n    const alreadyExistingAuthWellKnownEndpoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (!!alreadyExistingAuthWellKnownEndpoints) {\n      configuration.authWellknownEndpoints = alreadyExistingAuthWellKnownEndpoints;\n\n      return configuration;\n    }\n\n    const passedAuthWellKnownEndpoints = configuration.authWellknownEndpoints;\n\n    if (!!passedAuthWellKnownEndpoints) {\n      this.authWellKnownService.storeWellKnownEndpoints(configuration, passedAuthWellKnownEndpoints);\n      configuration.authWellknownEndpoints = passedAuthWellKnownEndpoints;\n\n      return configuration;\n    }\n\n    return configuration;\n  }\n\n  private prepareConfig(configuration: OpenIdConfiguration): OpenIdConfiguration {\n    const openIdConfigurationInternal = { ...DEFAULT_CONFIG, ...configuration };\n\n    this.setSpecialCases(openIdConfigurationInternal);\n\n    return openIdConfigurationInternal;\n  }\n\n  private setSpecialCases(currentConfig: OpenIdConfiguration): void {\n    if (!this.platformProvider.isBrowser()) {\n      currentConfig.startCheckSession = false;\n      currentConfig.silentRenew = false;\n      currentConfig.useRefreshToken = false;\n      currentConfig.usePushedAuthorisationRequests = false;\n    }\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { forkJoin, Observable, of, throwError } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { ConfigurationService } from '../config/config.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CallbackContext } from '../flows/callback-context';\nimport { FlowsDataService } from '../flows/flows-data.service';\nimport { ResetAuthDataService } from '../flows/reset-auth-data.service';\nimport { RefreshSessionIframeService } from '../iframe/refresh-session-iframe.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { UserService } from '../user-data/user.service';\nimport { FlowHelper } from '../utils/flowHelper/flow-helper.service';\nimport { IntervalService } from './interval.service';\nimport { RefreshSessionRefreshTokenService } from './refresh-session-refresh-token.service';\n\n@Injectable({ providedIn: 'root' })\nexport class PeriodicallyTokenCheckService {\n  constructor(\n    private readonly resetAuthDataService: ResetAuthDataService,\n    private readonly flowHelper: FlowHelper,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly loggerService: LoggerService,\n    private readonly userService: UserService,\n    private readonly authStateService: AuthStateService,\n    private readonly refreshSessionIframeService: RefreshSessionIframeService,\n    private readonly refreshSessionRefreshTokenService: RefreshSessionRefreshTokenService,\n    private intervalService: IntervalService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly publicEventsService: PublicEventsService,\n    private readonly configurationService: ConfigurationService\n  ) {}\n\n  startTokenValidationPeriodically(allConfigs: OpenIdConfiguration[], currentConfig: OpenIdConfiguration): void {\n    const configsWithSilentRenewEnabled = this.getConfigsWithSilentRenewEnabled(allConfigs);\n\n    if (configsWithSilentRenewEnabled.length <= 0) {\n      return;\n    }\n\n    if (this.intervalService.isTokenValidationRunning()) {\n      return;\n    }\n\n    const refreshTimeInSeconds = this.getSmallestRefreshTimeFromConfigs(configsWithSilentRenewEnabled);\n    const periodicallyCheck$ = this.intervalService.startPeriodicTokenCheck(refreshTimeInSeconds).pipe(\n      switchMap(() => {\n        const objectWithConfigIdsAndRefreshEvent = {};\n\n        configsWithSilentRenewEnabled.forEach((config) => {\n          objectWithConfigIdsAndRefreshEvent[config.configId] = this.getRefreshEvent(config, allConfigs);\n        });\n\n        return forkJoin(objectWithConfigIdsAndRefreshEvent);\n      })\n    );\n\n    this.intervalService.runTokenValidationRunning = periodicallyCheck$\n      .pipe(catchError((error) => throwError(() => new Error(error))))\n      .subscribe({\n        next: (objectWithConfigIds) => {\n          for (const [configId, _] of Object.entries(objectWithConfigIds)) {\n            this.configurationService.getOpenIDConfiguration(configId).subscribe((config) => {\n              this.loggerService.logDebug(config, 'silent renew, periodic check finished!');\n\n              if (this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(config)) {\n                this.flowsDataService.resetSilentRenewRunning(config);\n              }\n            });\n          }\n        },\n        error: (error) => {\n          this.loggerService.logError(currentConfig, 'silent renew failed!', error);\n        },\n      });\n  }\n\n  private getRefreshEvent(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): Observable<boolean | CallbackContext> {\n    const shouldStartRefreshEvent = this.shouldStartPeriodicallyCheckForConfig(config);\n\n    if (!shouldStartRefreshEvent) {\n      return of(null);\n    }\n\n    const refreshEvent$ = this.createRefreshEventForConfig(config, allConfigs);\n\n    this.publicEventsService.fireEvent(EventTypes.SilentRenewStarted);\n\n    return refreshEvent$.pipe(\n      catchError((error) => {\n        this.loggerService.logError(config, 'silent renew failed!', error);\n        this.publicEventsService.fireEvent(EventTypes.SilentRenewFailed, error);\n        this.flowsDataService.resetSilentRenewRunning(config);\n\n        return throwError(() => new Error(error));\n      })\n    );\n  }\n\n  private getSmallestRefreshTimeFromConfigs(configsWithSilentRenewEnabled: OpenIdConfiguration[]): number {\n    const result = configsWithSilentRenewEnabled.reduce((prev, curr) =>\n      prev.tokenRefreshInSeconds < curr.tokenRefreshInSeconds ? prev : curr\n    );\n\n    return result.tokenRefreshInSeconds;\n  }\n\n  private getConfigsWithSilentRenewEnabled(allConfigs: OpenIdConfiguration[]): OpenIdConfiguration[] {\n    return allConfigs.filter((x) => x.silentRenew);\n  }\n\n  private createRefreshEventForConfig(\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<boolean | CallbackContext> {\n    this.loggerService.logDebug(configuration, 'starting silent renew...');\n\n    return this.configurationService.getOpenIDConfiguration(configuration.configId).pipe(\n      switchMap((config) => {\n        if (!config?.silentRenew) {\n          this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n\n          return of(null);\n        }\n\n        this.flowsDataService.setSilentRenewRunning(config);\n\n        if (this.flowHelper.isCurrentFlowCodeFlowWithRefreshTokens(config)) {\n          // Retrieve Dynamically Set Custom Params for refresh body\n          const customParamsRefresh: { [key: string]: string | number | boolean } =\n            this.storagePersistenceService.read('storageCustomParamsRefresh', config) || {};\n\n          const { customParamsRefreshTokenRequest } = config;\n\n          const mergedParams = { ...customParamsRefreshTokenRequest, ...customParamsRefresh };\n\n          // Refresh Session using Refresh tokens\n          return this.refreshSessionRefreshTokenService.refreshSessionWithRefreshTokens(config, allConfigs, mergedParams);\n        }\n\n        // Retrieve Dynamically Set Custom Params\n        const customParams: { [key: string]: string | number | boolean } = this.storagePersistenceService.read(\n          'storageCustomParamsAuthRequest',\n          config\n        );\n\n        return this.refreshSessionIframeService.refreshSessionWithIframe(config, allConfigs, customParams);\n      })\n    );\n  }\n\n  private shouldStartPeriodicallyCheckForConfig(config: OpenIdConfiguration): boolean {\n    const idToken = this.authStateService.getIdToken(config);\n    const isSilentRenewRunning = this.flowsDataService.isSilentRenewRunning(config);\n    const isCodeFlowInProgress = this.flowsDataService.isCodeFlowInProgress(config);\n    const userDataFromStore = this.userService.getUserDataFromStore(config);\n\n    this.loggerService.logDebug(\n      config,\n      `Checking: silentRenewRunning: ${isSilentRenewRunning}, isCodeFlowInProgress: ${isCodeFlowInProgress} - has idToken: ${!!idToken} - has userData: ${!!userDataFromStore}`\n    );\n\n    const shouldBeExecuted = !!userDataFromStore && !isSilentRenewRunning && !!idToken && !isCodeFlowInProgress;\n\n    if (!shouldBeExecuted) {\n      return false;\n    }\n\n    return this.authStateService.hasAccessTokenExpiredIfExpiryExists(config);\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { PopupOptions } from './popup-options';\nimport { PopupResult } from './popup-result';\n\n@Injectable({ providedIn: 'root' })\nexport class PopUpService {\n  private readonly STORAGE_IDENTIFIER = 'popupauth';\n\n  private popUp: Window;\n\n  private handle: number;\n\n  private readonly resultInternal$ = new Subject<PopupResult>();\n\n  get result$(): Observable<PopupResult> {\n    return this.resultInternal$.asObservable();\n  }\n\n  private get windowInternal(): Window {\n    return this.document.defaultView;\n  }\n\n  constructor(\n    @Inject(DOCUMENT) private readonly document: Document,\n    private readonly loggerService: LoggerService,\n    private readonly storagePersistenceService: StoragePersistenceService\n  ) {}\n\n  currentWindowIsPopUp(): boolean {\n    return !!this.windowInternal.opener && this.windowInternal.opener !== this.windowInternal;\n  }\n\n  isCurrentlyInPopup(config: OpenIdConfiguration): boolean {\n    if (this.canAccessSessionStorage()) {\n      const mainWindowHasPopupOpen = this.mainWindowHasPopupOpen(config);\n      const currentWindowIsPopup = this.currentWindowIsPopUp();\n\n      return mainWindowHasPopupOpen || currentWindowIsPopup;\n    }\n\n    return false;\n  }\n\n  openPopUp(url: string, popupOptions: PopupOptions, config: OpenIdConfiguration): void {\n    const optionsToPass = this.getOptions(popupOptions);\n\n    this.popUp = this.windowInternal.open(url, '_blank', optionsToPass);\n\n    if (!this.popUp) {\n      this.loggerService.logError(config, 'Could not open popup');\n\n      return;\n    }\n\n    this.storagePersistenceService.write(this.STORAGE_IDENTIFIER, 'true', config);\n\n    const listener = (event: MessageEvent): void => {\n      if (!event?.data || typeof event.data !== 'string') {\n        this.cleanUp(listener, config);\n\n        return;\n      }\n\n      this.resultInternal$.next({ userClosed: false, receivedUrl: event.data });\n\n      this.cleanUp(listener, config);\n    };\n\n    this.windowInternal.addEventListener('message', listener, false);\n\n    this.handle = this.windowInternal.setInterval(() => {\n      if (this.popUp?.closed) {\n        this.resultInternal$.next({ userClosed: true });\n\n        this.cleanUp(listener, config);\n      }\n    }, 200);\n  }\n\n  sendMessageToMainWindow(url: string): void {\n    if (this.windowInternal.opener) {\n      const href = this.windowInternal.location.href;\n\n      this.sendMessage(url, href);\n    }\n  }\n\n  private cleanUp(listener: any, config: OpenIdConfiguration): void {\n    this.windowInternal.removeEventListener('message', listener, false);\n    this.windowInternal.clearInterval(this.handle);\n\n    if (this.popUp) {\n      this.storagePersistenceService.remove(this.STORAGE_IDENTIFIER, config);\n      this.popUp.close();\n      this.popUp = null;\n    }\n  }\n\n  private sendMessage(url: string, href: string): void {\n    this.windowInternal.opener.postMessage(url, href);\n  }\n\n  private getOptions(popupOptions: PopupOptions): string {\n    const popupDefaultOptions: PopupOptions = { width: 500, height: 500, left: 50, top: 50 };\n    const options: PopupOptions = { ...popupDefaultOptions, ...(popupOptions || {}) };\n    const left: number = this.windowInternal.screenLeft + (this.windowInternal.outerWidth - options.width) / 2;\n    const top: number = this.windowInternal.screenTop + (this.windowInternal.outerHeight - options.height) / 2;\n\n    options.left = left;\n    options.top = top;\n\n    return Object.entries(options)\n      .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)\n      .join(',');\n  }\n\n  private mainWindowHasPopupOpen(config: OpenIdConfiguration): boolean {\n    return !!this.storagePersistenceService.read(this.STORAGE_IDENTIFIER, config);\n  }\n\n  private canAccessSessionStorage(): boolean {\n    return typeof navigator !== 'undefined' && navigator.cookieEnabled && typeof Storage !== 'undefined';\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { forkJoin, Observable, of, throwError } from 'rxjs';\nimport { catchError, map, switchMap, tap } from 'rxjs/operators';\nimport { AuthStateService } from './auth-state.service';\nimport { AutoLoginService } from '../auto-login/auto-login.service';\nimport { CallbackService } from '../callback/callback.service';\nimport { PeriodicallyTokenCheckService } from '../callback/periodically-token-check.service';\nimport { RefreshSessionService } from '../callback/refresh-session.service';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { CheckSessionService } from '../iframe/check-session.service';\nimport { SilentRenewService } from '../iframe/silent-renew.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { LoginResponse } from '../login/login-response';\nimport { PopUpService } from '../login/popup/popup.service';\nimport { EventTypes } from '../public-events/event-types';\nimport { PublicEventsService } from '../public-events/public-events.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { UserService } from '../user-data/user.service';\nimport { CurrentUrlService } from '../utils/url/current-url.service';\n\n@Injectable({ providedIn: 'root' })\nexport class CheckAuthService {\n  constructor(\n    private readonly checkSessionService: CheckSessionService,\n    private readonly currentUrlService: CurrentUrlService,\n    private readonly silentRenewService: SilentRenewService,\n    private readonly userService: UserService,\n    private readonly loggerService: LoggerService,\n    private readonly authStateService: AuthStateService,\n    private readonly callbackService: CallbackService,\n    private readonly refreshSessionService: RefreshSessionService,\n    private readonly periodicallyTokenCheckService: PeriodicallyTokenCheckService,\n    private readonly popupService: PopUpService,\n    private readonly autoLoginService: AutoLoginService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly publicEventsService: PublicEventsService\n  ) {}\n\n  checkAuth(configuration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], url?: string): Observable<LoginResponse> {\n    this.publicEventsService.fireEvent(EventTypes.CheckingAuth);\n\n    const stateParamFromUrl = this.currentUrlService.getStateParamFromCurrentUrl(url);\n\n    if (!!stateParamFromUrl) {\n      configuration = this.getConfigurationWithUrlState([configuration], stateParamFromUrl);\n\n      if (!configuration) {\n        return throwError(() => new Error(`could not find matching config for state ${stateParamFromUrl}`));\n      }\n    }\n\n    return this.checkAuthWithConfig(configuration, allConfigs, url);\n  }\n\n  checkAuthMultiple(allConfigs: OpenIdConfiguration[], url?: string): Observable<LoginResponse[]> {\n    const stateParamFromUrl = this.currentUrlService.getStateParamFromCurrentUrl(url);\n\n    if (stateParamFromUrl) {\n      const config = this.getConfigurationWithUrlState(allConfigs, stateParamFromUrl);\n\n      if (!config) {\n        return throwError(() => new Error(`could not find matching config for state ${stateParamFromUrl}`));\n      }\n\n      return this.composeMultipleLoginResults(allConfigs, config, url);\n    }\n\n    const configs = allConfigs;\n    const allChecks$ = configs.map((x) => this.checkAuthWithConfig(x, configs, url));\n\n    return forkJoin(allChecks$);\n  }\n\n  checkAuthIncludingServer(configuration: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): Observable<LoginResponse> {\n    return this.checkAuthWithConfig(configuration, allConfigs).pipe(\n      switchMap((loginResponse) => {\n        const { isAuthenticated } = loginResponse;\n\n        if (isAuthenticated) {\n          return of(loginResponse);\n        }\n\n        return this.refreshSessionService.forceRefreshSession(configuration, allConfigs).pipe(\n          tap((loginResponseAfterRefreshSession) => {\n            if (loginResponseAfterRefreshSession?.isAuthenticated) {\n              this.startCheckSessionAndValidation(configuration, allConfigs);\n            }\n          })\n        );\n      })\n    );\n  }\n\n  private checkAuthWithConfig(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], url?: string): Observable<LoginResponse> {\n    if (!config) {\n      const errorMessage = 'Please provide at least one configuration before setting up the module';\n\n      this.loggerService.logError(config, errorMessage);\n\n      return of({ isAuthenticated: false, errorMessage, userData: null, idToken: null, accessToken: null, configId: null });\n    }\n\n    const currentUrl = url || this.currentUrlService.getCurrentUrl();\n    const { configId, authority } = config;\n\n    this.loggerService.logDebug(config, `Working with config '${configId}' using ${authority}`);\n\n    if (this.popupService.currentWindowIsPopUp()) {\n      this.popupService.sendMessageToMainWindow(currentUrl);\n\n      return of(null);\n    }\n\n    const isCallback = this.callbackService.isCallback(currentUrl);\n\n    this.loggerService.logDebug(config, 'currentUrl to check auth with: ', currentUrl);\n\n    const callback$ = isCallback ? this.callbackService.handleCallbackAndFireEvents(currentUrl, config, allConfigs) : of(null);\n\n    return callback$.pipe(\n      map(() => {\n        const isAuthenticated = this.authStateService.areAuthStorageTokensValid(config);\n\n        if (isAuthenticated) {\n          this.startCheckSessionAndValidation(config, allConfigs);\n\n          if (!isCallback) {\n            this.authStateService.setAuthenticatedAndFireEvent(allConfigs);\n            this.userService.publishUserDataIfExists(config, allConfigs);\n          }\n        }\n\n        this.loggerService.logDebug(config, 'checkAuth completed - firing events now. isAuthenticated: ' + isAuthenticated);\n\n        return {\n          isAuthenticated,\n          userData: this.userService.getUserDataFromStore(config),\n          accessToken: this.authStateService.getAccessToken(config),\n          idToken: this.authStateService.getIdToken(config),\n          configId,\n        };\n      }),\n      tap(({ isAuthenticated }) => {\n        this.publicEventsService.fireEvent(EventTypes.CheckingAuthFinished);\n\n        if (isAuthenticated) {\n          this.autoLoginService.checkSavedRedirectRouteAndNavigate(config);\n        }\n      }),\n      catchError(({ message }) => {\n        this.loggerService.logError(config, message);\n        this.publicEventsService.fireEvent(EventTypes.CheckingAuthFinishedWithError, message);\n\n        return of({ isAuthenticated: false, errorMessage: message, userData: null, idToken: null, accessToken: null, configId });\n      })\n    );\n  }\n\n  private startCheckSessionAndValidation(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    if (this.checkSessionService.isCheckSessionConfigured(config)) {\n      this.checkSessionService.start(config);\n    }\n\n    this.periodicallyTokenCheckService.startTokenValidationPeriodically(allConfigs, config);\n\n    if (this.silentRenewService.isSilentRenewConfigured(config)) {\n      this.silentRenewService.getOrCreateIframe(config);\n    }\n  }\n\n  private getConfigurationWithUrlState(configurations: OpenIdConfiguration[], stateFromUrl: string): OpenIdConfiguration {\n    for (const config of configurations) {\n      const storedState = this.storagePersistenceService.read('authStateControl', config);\n\n      if (storedState === stateFromUrl) {\n        return config;\n      }\n    }\n\n    return null;\n  }\n\n  private composeMultipleLoginResults(\n    configurations: OpenIdConfiguration[],\n    activeConfig: OpenIdConfiguration,\n    url?: string\n  ): Observable<LoginResponse[]> {\n    const allOtherConfigs = configurations.filter((x) => x.configId !== activeConfig.configId);\n\n    const currentConfigResult = this.checkAuthWithConfig(activeConfig, configurations, url);\n\n    const allOtherConfigResults = allOtherConfigs.map((config) => {\n      const { redirectUrl } = config;\n\n      return this.checkAuthWithConfig(config, configurations, redirectUrl);\n    });\n\n    return forkJoin([currentConfigResult, ...allOtherConfigResults]);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { FlowHelper } from '../../utils/flowHelper/flow-helper.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ResponseTypeValidationService {\n  constructor(private readonly loggerService: LoggerService, private readonly flowHelper: FlowHelper) {}\n\n  hasConfigValidResponseType(configuration: OpenIdConfiguration): boolean {\n    if (this.flowHelper.isCurrentFlowAnyImplicitFlow(configuration)) {\n      return true;\n    }\n\n    if (this.flowHelper.isCurrentFlowCodeFlow(configuration)) {\n      return true;\n    }\n\n    this.loggerService.logWarning(\n      configuration,\n      'module configured incorrectly, invalid response_type. Check the responseType in the config'\n    );\n\n    return false;\n  }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class RedirectService {\n  constructor(@Inject(DOCUMENT) private readonly document: Document) {}\n\n  redirectTo(url): void {\n    this.document.location.href = url;\n  }\n}\n","import { HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, map, retry, switchMap } from 'rxjs/operators';\nimport { DataService } from '../../api/data.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { StoragePersistenceService } from '../../storage/storage-persistence.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { ParResponse } from './par-response';\n\n@Injectable({ providedIn: 'root' })\nexport class ParService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly urlService: UrlService,\n    private readonly dataService: DataService,\n    private readonly storagePersistenceService: StoragePersistenceService\n  ) {}\n\n  postParRequest(configuration: OpenIdConfiguration, customParams?: { [key: string]: string | number | boolean }): Observable<ParResponse> {\n    let headers: HttpHeaders = new HttpHeaders();\n\n    headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');\n\n    const authWellKnownEndpoints = this.storagePersistenceService.read('authWellKnownEndPoints', configuration);\n\n    if (!authWellKnownEndpoints) {\n      return throwError(() => new Error('Could not read PAR endpoint because authWellKnownEndPoints are not given'));\n    }\n\n    const parEndpoint = authWellKnownEndpoints.parEndpoint;\n\n    if (!parEndpoint) {\n      return throwError(() => new Error('Could not read PAR endpoint from authWellKnownEndpoints'));\n    }\n\n    return this.urlService.createBodyForParCodeFlowRequest(configuration, customParams).pipe(\n      switchMap((data) => {\n        return this.dataService.post(parEndpoint, data, configuration, headers).pipe(\n          retry(2),\n          map((response: any) => {\n            this.loggerService.logDebug(configuration, 'par response: ', response);\n\n            return {\n              expiresIn: response.expires_in,\n              requestUri: response.request_uri,\n            };\n          }),\n          catchError((error) => {\n            const errorMessage = `There was an error on ParService postParRequest`;\n\n            this.loggerService.logError(configuration, errorMessage, error);\n\n            return throwError(() => new Error(errorMessage));\n          })\n        );\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { switchMap, take } from 'rxjs/operators';\nimport { AuthOptions } from '../../auth-options';\nimport { CheckAuthService } from '../../auth-state/check-auth.service';\nimport { AuthWellKnownService } from '../../config/auth-well-known/auth-well-known.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { RedirectService } from '../../utils/redirect/redirect.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { LoginResponse } from '../login-response';\nimport { PopupOptions } from '../popup/popup-options';\nimport { PopupResultReceivedUrl } from '../popup/popup-result';\nimport { PopUpService } from '../popup/popup.service';\nimport { ResponseTypeValidationService } from '../response-type-validation/response-type-validation.service';\nimport { ParResponse } from './par-response';\nimport { ParService } from './par.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ParLoginService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly responseTypeValidationService: ResponseTypeValidationService,\n    private readonly urlService: UrlService,\n    private readonly redirectService: RedirectService,\n    private readonly authWellKnownService: AuthWellKnownService,\n    private readonly popupService: PopUpService,\n    private readonly checkAuthService: CheckAuthService,\n    private readonly parService: ParService\n  ) {}\n\n  loginPar(configuration: OpenIdConfiguration, authOptions?: AuthOptions): void {\n    if (!this.responseTypeValidationService.hasConfigValidResponseType(configuration)) {\n      this.loggerService.logError(configuration, 'Invalid response type!');\n\n      return;\n    }\n\n    this.loggerService.logDebug(configuration, 'BEGIN Authorize OIDC Flow, no auth data');\n\n    const { urlHandler, customParams } = authOptions || {};\n\n    this.authWellKnownService\n      .queryAndStoreAuthWellKnownEndPoints(configuration)\n      .pipe(switchMap(() => this.parService.postParRequest(configuration, customParams)))\n      .subscribe((response) => {\n        this.loggerService.logDebug(configuration, 'par response: ', response);\n\n        const url = this.urlService.getAuthorizeParUrl(response.requestUri, configuration);\n\n        this.loggerService.logDebug(configuration, 'par request url: ', url);\n\n        if (!url) {\n          this.loggerService.logError(configuration, `Could not create URL with param ${response.requestUri}: '${url}'`);\n\n          return;\n        }\n\n        if (urlHandler) {\n          urlHandler(url);\n        } else {\n          this.redirectService.redirectTo(url);\n        }\n      });\n  }\n\n  loginWithPopUpPar(\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    authOptions?: AuthOptions,\n    popupOptions?: PopupOptions\n  ): Observable<LoginResponse> {\n    const { configId } = configuration;\n\n    if (!this.responseTypeValidationService.hasConfigValidResponseType(configuration)) {\n      const errorMessage = 'Invalid response type!';\n\n      this.loggerService.logError(configuration, errorMessage);\n\n      return throwError(() => new Error(errorMessage));\n    }\n\n    this.loggerService.logDebug(configuration, 'BEGIN Authorize OIDC Flow with popup, no auth data');\n\n    const { customParams } = authOptions || {};\n\n    return this.authWellKnownService.queryAndStoreAuthWellKnownEndPoints(configuration).pipe(\n      switchMap(() => this.parService.postParRequest(configuration, customParams)),\n      switchMap((response: ParResponse) => {\n        this.loggerService.logDebug(configuration, 'par response: ', response);\n\n        const url = this.urlService.getAuthorizeParUrl(response.requestUri, configuration);\n\n        this.loggerService.logDebug(configuration, 'par request url: ', url);\n\n        if (!url) {\n          const errorMessage = `Could not create URL with param ${response.requestUri}: 'url'`;\n\n          this.loggerService.logError(configuration, errorMessage);\n\n          return throwError(() => new Error(errorMessage));\n        }\n\n        this.popupService.openPopUp(url, popupOptions, configuration);\n\n        return this.popupService.result$.pipe(\n          take(1),\n          switchMap((result: PopupResultReceivedUrl) => {\n            const { userClosed, receivedUrl } = result;\n\n            if (userClosed) {\n              return of({\n                isAuthenticated: false,\n                errorMessage: 'User closed popup',\n                userData: null,\n                idToken: null,\n                accessToken: null,\n                configId,\n              });\n            }\n\n            return this.checkAuthService.checkAuth(configuration, allConfigs, receivedUrl);\n          })\n        );\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { switchMap, take, tap } from 'rxjs/operators';\nimport { AuthOptions } from '../../auth-options';\nimport { CheckAuthService } from '../../auth-state/check-auth.service';\nimport { AuthWellKnownService } from '../../config/auth-well-known/auth-well-known.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\nimport { LoggerService } from '../../logging/logger.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { LoginResponse } from '../login-response';\nimport { PopupOptions } from './popup-options';\nimport { PopUpService } from './popup.service';\nimport { ResponseTypeValidationService } from '../response-type-validation/response-type-validation.service';\nimport { PopupResultReceivedUrl } from './popup-result';\n\n@Injectable({ providedIn: 'root' })\nexport class PopUpLoginService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly responseTypeValidationService: ResponseTypeValidationService,\n    private readonly urlService: UrlService,\n    private readonly authWellKnownService: AuthWellKnownService,\n    private readonly popupService: PopUpService,\n    private readonly checkAuthService: CheckAuthService\n  ) {}\n\n  loginWithPopUpStandard(\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    authOptions?: AuthOptions,\n    popupOptions?: PopupOptions\n  ): Observable<LoginResponse> {\n    const { configId } = configuration;\n\n    if (!this.responseTypeValidationService.hasConfigValidResponseType(configuration)) {\n      const errorMessage = 'Invalid response type!';\n\n      this.loggerService.logError(configuration, errorMessage);\n\n      return throwError(() => new Error(errorMessage));\n    }\n\n    this.loggerService.logDebug(configuration, 'BEGIN Authorize OIDC Flow with popup, no auth data');\n\n    return this.authWellKnownService.queryAndStoreAuthWellKnownEndPoints(configuration).pipe(\n      switchMap(() => this.urlService.getAuthorizeUrl(configuration, authOptions)),\n      tap((authUrl: string) => this.popupService.openPopUp(authUrl, popupOptions, configuration)),\n      switchMap(() => {\n        return this.popupService.result$.pipe(\n          take(1),\n          switchMap((result: PopupResultReceivedUrl) => {\n            const { userClosed, receivedUrl } = result;\n\n            if (userClosed) {\n              return of({\n                isAuthenticated: false,\n                errorMessage: 'User closed popup',\n                userData: null,\n                idToken: null,\n                accessToken: null,\n                configId,\n              });\n            }\n\n            return this.checkAuthService.checkAuth(configuration, allConfigs, receivedUrl);\n          })\n        );\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { AuthOptions } from '../../auth-options';\nimport { AuthWellKnownService } from '../../config/auth-well-known/auth-well-known.service';\nimport { FlowsDataService } from '../../flows/flows-data.service';\nimport { LoggerService } from '../../logging/logger.service';\nimport { RedirectService } from '../../utils/redirect/redirect.service';\nimport { UrlService } from '../../utils/url/url.service';\nimport { ResponseTypeValidationService } from '../response-type-validation/response-type-validation.service';\nimport { OpenIdConfiguration } from '../../config/openid-configuration';\n\n@Injectable({ providedIn: 'root' })\nexport class StandardLoginService {\n  constructor(\n    private readonly loggerService: LoggerService,\n    private readonly responseTypeValidationService: ResponseTypeValidationService,\n    private readonly urlService: UrlService,\n    private readonly redirectService: RedirectService,\n    private readonly authWellKnownService: AuthWellKnownService,\n    private readonly flowsDataService: FlowsDataService\n  ) {}\n\n  loginStandard(configuration: OpenIdConfiguration, authOptions?: AuthOptions): void {\n    if (!this.responseTypeValidationService.hasConfigValidResponseType(configuration)) {\n      this.loggerService.logError(configuration, 'Invalid response type!');\n\n      return;\n    }\n\n    this.loggerService.logDebug(configuration, 'BEGIN Authorize OIDC Flow, no auth data');\n    this.flowsDataService.setCodeFlowInProgress(configuration);\n\n    this.authWellKnownService.queryAndStoreAuthWellKnownEndPoints(configuration).subscribe(() => {\n      const { urlHandler } = authOptions || {};\n\n      this.flowsDataService.resetSilentRenewRunning(configuration);\n\n      this.urlService.getAuthorizeUrl(configuration, authOptions).subscribe((url: string) => {\n        if (!url) {\n          this.loggerService.logError(configuration, 'Could not create URL', url);\n\n          return;\n        }\n\n        if (urlHandler) {\n          urlHandler(url);\n        } else {\n          this.redirectService.redirectTo(url);\n        }\n      });\n    });\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { AuthOptions } from '../auth-options';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { LoginResponse } from './login-response';\nimport { ParLoginService } from './par/par-login.service';\nimport { PopUpLoginService } from './popup/popup-login.service';\nimport { PopupOptions } from './popup/popup-options';\nimport { PopUpService } from './popup/popup.service';\nimport { StandardLoginService } from './standard/standard-login.service';\n\n@Injectable({ providedIn: 'root' })\nexport class LoginService {\n  constructor(\n    private readonly parLoginService: ParLoginService,\n    private readonly popUpLoginService: PopUpLoginService,\n    private readonly standardLoginService: StandardLoginService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly popupService: PopUpService\n  ) {}\n\n  login(configuration: OpenIdConfiguration, authOptions?: AuthOptions): void {\n    const { usePushedAuthorisationRequests } = configuration;\n\n    if (authOptions?.customParams) {\n      this.storagePersistenceService.write('storageCustomParamsAuthRequest', authOptions.customParams, configuration);\n    }\n\n    if (usePushedAuthorisationRequests) {\n      return this.parLoginService.loginPar(configuration, authOptions);\n    } else {\n      return this.standardLoginService.loginStandard(configuration, authOptions);\n    }\n  }\n\n  loginWithPopUp(\n    configuration: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    authOptions?: AuthOptions,\n    popupOptions?: PopupOptions\n  ): Observable<LoginResponse> {\n    const isAlreadyInPopUp = this.popupService.isCurrentlyInPopup(configuration);\n\n    if (isAlreadyInPopUp) {\n      return of({ errorMessage: 'There is already a popup open.' } as LoginResponse);\n    }\n\n    const { usePushedAuthorisationRequests } = configuration;\n\n    if (authOptions?.customParams) {\n      this.storagePersistenceService.write('storageCustomParamsAuthRequest', authOptions.customParams, configuration);\n    }\n\n    if (usePushedAuthorisationRequests) {\n      return this.parLoginService.loginWithPopUpPar(configuration, allConfigs, authOptions, popupOptions);\n    }\n\n    return this.popUpLoginService.loginWithPopUpStandard(configuration, allConfigs, authOptions, popupOptions);\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Router, RouterStateSnapshot, UrlTree } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { map, switchMap, take } from 'rxjs/operators';\nimport { CheckAuthService } from '../auth-state/check-auth.service';\nimport { ConfigurationService } from '../config/config.service';\nimport { LoginService } from '../login/login.service';\nimport { AutoLoginService } from './auto-login.service';\n\n@Injectable({ providedIn: 'root' })\nexport class AutoLoginAllRoutesGuard implements CanActivate, CanActivateChild, CanLoad {\n  constructor(\n    private readonly autoLoginService: AutoLoginService,\n    private readonly checkAuthService: CheckAuthService,\n    private readonly loginService: LoginService,\n    private readonly configurationService: ConfigurationService,\n    private readonly router: Router\n  ) {}\n\n  canLoad(): Observable<boolean | UrlTree> {\n    return this.checkAuth(this.router.getCurrentNavigation()?.extractedUrl.toString().substring(1) ?? '');\n  }\n\n  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> {\n    return this.checkAuth(state.url);\n  }\n\n  canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> {\n    return this.checkAuth(state.url);\n  }\n\n  private checkAuth(url: string): Observable<boolean> {\n    return this.configurationService.getOpenIDConfiguration().pipe(\n      switchMap((config) => {\n        const allConfigs = this.configurationService.getAllConfigurations();\n\n        return this.checkAuthService.checkAuth(config, allConfigs).pipe(\n          take(1),\n          map(({ isAuthenticated }) => {\n            if (isAuthenticated) {\n              this.autoLoginService.checkSavedRedirectRouteAndNavigate(config);\n            }\n\n            if (!isAuthenticated) {\n              this.autoLoginService.saveRedirectRoute(config, url);\n              this.loginService.login(config);\n            }\n\n            return isAuthenticated;\n          })\n        );\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Router, RouterStateSnapshot } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { ConfigurationService } from '../config/config.service';\nimport { LoginService } from '../login/login.service';\nimport { AutoLoginService } from './auto-login.service';\n\n@Injectable({ providedIn: 'root' })\nexport class AutoLoginPartialRoutesGuard implements CanActivate, CanActivateChild, CanLoad {\n  constructor(\n    private readonly autoLoginService: AutoLoginService,\n    private readonly authStateService: AuthStateService,\n    private readonly loginService: LoginService,\n    private readonly configurationService: ConfigurationService,\n    private readonly router: Router\n  ) {}\n\n  canLoad(): Observable<boolean> {\n    return this.checkAuth(this.router.getCurrentNavigation()?.extractedUrl.toString().substring(1) ?? '');\n  }\n\n  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {\n    return this.checkAuth(state.url);\n  }\n\n  canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {\n    return this.checkAuth(state.url);\n  }\n\n  private checkAuth(url: string): Observable<boolean> {\n    return this.configurationService.getOpenIDConfiguration().pipe(\n      map((configuration) => {\n        const isAuthenticated = this.authStateService.areAuthStorageTokensValid(configuration);\n\n        if (isAuthenticated) {\n          this.autoLoginService.checkSavedRedirectRouteAndNavigate(configuration);\n        }\n\n        if (!isAuthenticated) {\n          this.autoLoginService.saveRedirectRoute(configuration, url);\n          this.loginService.login(configuration);\n        }\n\n        return isAuthenticated;\n      })\n    );\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\n\n@Injectable({ providedIn: 'root' })\nexport class ClosestMatchingRouteService {\n  getConfigIdForClosestMatchingRoute(route: string, configurations: OpenIdConfiguration[]): ClosestMatchingRouteResult {\n    for (const config of configurations) {\n      const { secureRoutes } = config;\n\n      for (const configuredRoute of secureRoutes) {\n        if (route.startsWith(configuredRoute)) {\n          return {\n            matchingRoute: configuredRoute,\n            matchingConfig: config,\n          };\n        }\n      }\n    }\n\n    return {\n      matchingRoute: null,\n      matchingConfig: null,\n    };\n  }\n}\n\nexport interface ClosestMatchingRouteResult {\n  matchingRoute: string;\n  matchingConfig: OpenIdConfiguration;\n}\n","import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';\nimport { inject, Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { AuthStateService } from '../auth-state/auth-state.service';\nimport { ConfigurationService } from '../config/config.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { ClosestMatchingRouteService } from './closest-matching-route.service';\n\n// these types can be dropped when Angular 14 support is dropped (and imported from angular/common/http)\ndeclare type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;\ndeclare type HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) => Observable<HttpEvent<unknown>>;\n\n@Injectable({ providedIn: 'root' })\nexport class AuthInterceptor implements HttpInterceptor {\n  constructor(\n    private readonly authStateService: AuthStateService,\n    private readonly configurationService: ConfigurationService,\n    private readonly loggerService: LoggerService,\n    private readonly closestMatchingRouteService: ClosestMatchingRouteService\n  ) {}\n\n  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\n    return interceptRequest(req, next.handle, {\n      configurationService: this.configurationService,\n      authStateService: this.authStateService,\n      closestMatchingRouteService: this.closestMatchingRouteService,\n      loggerService: this.loggerService,\n    });\n  }\n}\n\nexport function authInterceptor(): HttpInterceptorFn {\n  return (req, next) => {\n    return interceptRequest(req, next, {\n      configurationService: inject(ConfigurationService),\n      authStateService: inject(AuthStateService),\n      closestMatchingRouteService: inject(ClosestMatchingRouteService),\n      loggerService: inject(LoggerService),\n    });\n  };\n}\n\nfunction interceptRequest(\n  req: HttpRequest<any>,\n  next: HttpHandlerFn,\n  deps: {\n    authStateService: AuthStateService;\n    configurationService: ConfigurationService;\n    loggerService: LoggerService;\n    closestMatchingRouteService: ClosestMatchingRouteService;\n  }\n): Observable<HttpEvent<unknown>> {\n  if (!deps.configurationService.hasAtLeastOneConfig()) {\n    return next(req);\n  }\n\n  const allConfigurations = deps.configurationService.getAllConfigurations();\n  const allRoutesConfigured = allConfigurations.map((x) => x.secureRoutes || []);\n  const allRoutesConfiguredFlat = [].concat(...allRoutesConfigured) as string[];\n\n  if (allRoutesConfiguredFlat.length === 0) {\n    deps.loggerService.logDebug(allConfigurations[0], `No routes to check configured`);\n\n    return next(req);\n  }\n\n  const { matchingConfig, matchingRoute } = deps.closestMatchingRouteService.getConfigIdForClosestMatchingRoute(req.url, allConfigurations);\n\n  if (!matchingConfig) {\n    deps.loggerService.logDebug(allConfigurations[0], `Did not find any configured route for route ${req.url}`);\n\n    return next(req);\n  }\n\n  deps.loggerService.logDebug(matchingConfig, `'${req.url}' matches configured route '${matchingRoute}'`);\n  const token = deps.authStateService.getAccessToken(matchingConfig);\n\n  if (!token) {\n    deps.loggerService.logDebug(matchingConfig, `Wanted to add token to ${req.url} but found no token: '${token}'`);\n\n    return next(req);\n  }\n\n  deps.loggerService.logDebug(matchingConfig, `'${req.url}' matches configured route '${matchingRoute}', adding token`);\n  req = req.clone({\n    headers: req.headers.set('Authorization', 'Bearer ' + token),\n  });\n\n  return next(req);\n}\n","export function removeNullAndUndefinedValues(obj: any): any {\n  const copy = { ...obj };\n\n  for (const key in obj) {\n    if (obj[key] === undefined || obj[key] === null) {\n      delete copy[key];\n    }\n  }\n\n  return copy;\n}\n","import { HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable, of, throwError } from 'rxjs';\nimport { catchError, concatMap, retry, switchMap } from 'rxjs/operators';\nimport { DataService } from '../api/data.service';\nimport { LogoutAuthOptions } from '../auth-options';\nimport { OpenIdConfiguration } from '../config/openid-configuration';\nimport { ResetAuthDataService } from '../flows/reset-auth-data.service';\nimport { CheckSessionService } from '../iframe/check-session.service';\nimport { LoggerService } from '../logging/logger.service';\nimport { StoragePersistenceService } from '../storage/storage-persistence.service';\nimport { removeNullAndUndefinedValues } from '../utils/object/object.helper';\nimport { RedirectService } from '../utils/redirect/redirect.service';\nimport { UrlService } from '../utils/url/url.service';\n\n@Injectable({ providedIn: 'root' })\nexport class LogoffRevocationService {\n  constructor(\n    private readonly dataService: DataService,\n    private readonly storagePersistenceService: StoragePersistenceService,\n    private readonly loggerService: LoggerService,\n    private readonly urlService: UrlService,\n    private readonly checkSessionService: CheckSessionService,\n    private readonly resetAuthDataService: ResetAuthDataService,\n    private readonly redirectService: RedirectService\n  ) {}\n\n  // Logs out on the server and the local client.\n  // If the server state has changed, check session, then only a local logout.\n  logoff(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[], logoutAuthOptions?: LogoutAuthOptions): Observable<unknown> {\n    this.loggerService.logDebug(config, 'logoff, remove auth', logoutAuthOptions);\n\n    const { urlHandler, customParams } = logoutAuthOptions || {};\n\n    const endSessionUrl = this.urlService.getEndSessionUrl(config, customParams);\n\n    if (!endSessionUrl) {\n      this.loggerService.logDebug(config, 'No endsessionUrl present. Logoff was only locally. Returning.');\n\n      return of(null);\n    }\n\n    if (this.checkSessionService.serverStateChanged(config)) {\n      this.loggerService.logDebug(config, 'Server State changed. Logoff was only locally. Returning.');\n\n      return of(null);\n    }\n\n    if (urlHandler) {\n      this.loggerService.logDebug(config, `Custom UrlHandler found. Using this to handle logoff with url '${endSessionUrl}'`);\n      urlHandler(endSessionUrl);\n\n      return of(null);\n    }\n\n    return this.logoffInternal(logoutAuthOptions, endSessionUrl, config, allConfigs);\n  }\n\n  logoffLocal(config: OpenIdConfiguration, allConfigs: OpenIdConfiguration[]): void {\n    this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n    this.checkSessionService.stop();\n  }\n\n  logoffLocalMultiple(allConfigs: OpenIdConfiguration[]): void {\n    allConfigs.forEach((configuration) => this.logoffLocal(configuration, allConfigs));\n  }\n\n  // The refresh token and and the access token are revoked on the server. If the refresh token does not exist\n  // only the access token is revoked. Then the logout run.\n  logoffAndRevokeTokens(\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[],\n    logoutAuthOptions?: LogoutAuthOptions\n  ): Observable<any> {\n    const { revocationEndpoint } = this.storagePersistenceService.read('authWellKnownEndPoints', config) || {};\n\n    if (!revocationEndpoint) {\n      this.loggerService.logDebug(config, 'revocation endpoint not supported');\n\n      return this.logoff(config, allConfigs, logoutAuthOptions);\n    }\n\n    if (this.storagePersistenceService.getRefreshToken(config)) {\n      return this.revokeRefreshToken(config).pipe(\n        switchMap((_) => this.revokeAccessToken(config)),\n        catchError((error) => {\n          const errorMessage = `revoke token failed`;\n\n          this.loggerService.logError(config, errorMessage, error);\n\n          return throwError(() => new Error(errorMessage));\n        }),\n        concatMap(() => this.logoff(config, allConfigs, logoutAuthOptions))\n      );\n    } else {\n      return this.revokeAccessToken(config).pipe(\n        catchError((error) => {\n          const errorMessage = `revoke accessToken failed`;\n\n          this.loggerService.logError(config, errorMessage, error);\n\n          return throwError(() => new Error(errorMessage));\n        }),\n        concatMap(() => this.logoff(config, allConfigs, logoutAuthOptions))\n      );\n    }\n  }\n\n  // https://tools.ietf.org/html/rfc7009\n  // revokes an access token on the STS. If no token is provided, then the token from\n  // the storage is revoked. You can pass any token to revoke. This makes it possible to\n  // manage your own tokens. The is a public API.\n  revokeAccessToken(configuration: OpenIdConfiguration, accessToken?: any): Observable<any> {\n    const accessTok = accessToken || this.storagePersistenceService.getAccessToken(configuration);\n    const body = this.urlService.createRevocationEndpointBodyAccessToken(accessTok, configuration);\n\n    return this.sendRevokeRequest(configuration, body);\n  }\n\n  // https://tools.ietf.org/html/rfc7009\n  // revokes an refresh token on the STS. This is only required in the code flow with refresh tokens.\n  // If no token is provided, then the token from the storage is revoked. You can pass any token to revoke.\n  // This makes it possible to manage your own tokens.\n  revokeRefreshToken(configuration: OpenIdConfiguration, refreshToken?: any): Observable<any> {\n    const refreshTok = refreshToken || this.storagePersistenceService.getRefreshToken(configuration);\n    const body = this.urlService.createRevocationEndpointBodyRefreshToken(refreshTok, configuration);\n\n    return this.sendRevokeRequest(configuration, body);\n  }\n\n  private logoffInternal(\n    logoutAuthOptions: LogoutAuthOptions,\n    endSessionUrl: string,\n    config: OpenIdConfiguration,\n    allConfigs: OpenIdConfiguration[]\n  ): Observable<unknown> {\n    const { logoffMethod, customParams } = logoutAuthOptions || {};\n\n    if (!logoffMethod || logoffMethod === 'GET') {\n      this.redirectService.redirectTo(endSessionUrl);\n\n      this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n\n      return of(null);\n    }\n\n    const { state, logout_hint, ui_locales } = customParams || {};\n    const { clientId } = config;\n    const idToken = this.storagePersistenceService.getIdToken(config);\n    const postLogoutRedirectUrl = this.urlService.getPostLogoutRedirectUrl(config);\n    const headers = this.getHeaders();\n    const { url } = this.urlService.getEndSessionEndpoint(config);\n    const body = {\n      id_token_hint: idToken,\n      client_id: clientId,\n      post_logout_redirect_uri: postLogoutRedirectUrl,\n      state,\n      logout_hint,\n      ui_locales,\n    };\n    const bodyWithoutNullOrUndefined = removeNullAndUndefinedValues(body);\n\n    this.resetAuthDataService.resetAuthorizationData(config, allConfigs);\n\n    return this.dataService.post(url, bodyWithoutNullOrUndefined, config, headers);\n  }\n\n  private sendRevokeRequest(configuration: OpenIdConfiguration, body: string): Observable<any> {\n    const url = this.urlService.getRevocationEndpointUrl(configuration);\n    const headers = this.getHeaders();\n\n    return this.dataService.post(url, body, configuration, headers).pipe(\n      retry(2),\n      switchMap((response: any) => {\n        this.loggerService.logDebug(configuration, 'revocation endpoint post response: ', response);\n\n        return of(response);\n      }),\n      catchError((error) => {\n        const errorMessage = `Revocation request failed`;\n\n        this.loggerService.logError(configuration, errorMessage, error);\n\n        return throwError(() => new Error(errorMessage));\n      })\n    );\n  }\n\n  private getHeaders(): HttpHeaders {\n    let headers: HttpHeaders = new HttpHeaders();\n\n    headers = headers.set('Content-Type', 'application/x-www-form-urlencoded');\n\n    return headers;\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { concatMap, map } from 'rxjs/operators';\nimport { AuthOptions, LogoutAuthOptions } from './auth-options';\nimport { AuthenticatedResult } from './auth-state/auth-result';\nimport { AuthStateService } from './auth-state/auth-state.service';\nimport { CheckAuthService } from './auth-state/check-auth.service';\nimport { CallbackService } from './callback/callback.service';\nimport { RefreshSessionService } from './callback/refresh-session.service';\nimport { AuthWellKnownEndpoints } from './config/auth-well-known/auth-well-known-endpoints';\nimport { AuthWellKnownService } from './config/auth-well-known/auth-well-known.service';\nimport { ConfigurationService } from './config/config.service';\nimport { OpenIdConfiguration } from './config/openid-configuration';\nimport { FlowsDataService } from './flows/flows-data.service';\nimport { CheckSessionService } from './iframe/check-session.service';\nimport { LoginResponse } from './login/login-response';\nimport { LoginService } from './login/login.service';\nimport { PopupOptions } from './login/popup/popup-options';\nimport { LogoffRevocationService } from './logoff-revoke/logoff-revocation.service';\nimport { UserService } from './user-data/user.service';\nimport { UserDataResult } from './user-data/userdata-result';\nimport { TokenHelperService } from './utils/tokenHelper/token-helper.service';\nimport { UrlService } from './utils/url/url.service';\n\n@Injectable({ providedIn: 'root' })\nexport class OidcSecurityService {\n  /**\n   * Provides information about the user after they have logged in.\n   *\n   * @returns Returns an object containing either the user data directly (single config) or\n   * the user data per config in case you are running with multiple configs\n   */\n  get userData$(): Observable<UserDataResult> {\n    return this.userService.userData$;\n  }\n\n  /**\n   * Emits each time an authorization event occurs.\n   *\n   * @returns Returns an object containing if you are authenticated or not.\n   * Single Config: true if config is authenticated, false if not.\n   * Multiple Configs: true is all configs are authenticated, false if only one of them is not\n   *\n   * The `allConfigsAuthenticated` property contains the auth information _per config_.\n   */\n  get isAuthenticated$(): Observable<AuthenticatedResult> {\n    return this.authStateService.authenticated$;\n  }\n\n  /**\n   * Emits each time the server sends a CheckSession event and the value changed. This property will always return\n   * true.\n   */\n  get checkSessionChanged$(): Observable<boolean> {\n    return this.checkSessionService.checkSessionChanged$;\n  }\n\n  /**\n   * Emits on a Security Token Service callback. The observable will never contain a value.\n   */\n  get stsCallback$(): Observable<any> {\n    return this.callbackService.stsCallback$;\n  }\n\n  constructor(\n    private readonly checkSessionService: CheckSessionService,\n    private readonly checkAuthService: CheckAuthService,\n    private readonly userService: UserService,\n    private readonly tokenHelperService: TokenHelperService,\n    private readonly configurationService: ConfigurationService,\n    private readonly authStateService: AuthStateService,\n    private readonly flowsDataService: FlowsDataService,\n    private readonly callbackService: CallbackService,\n    private readonly logoffRevocationService: LogoffRevocationService,\n    private readonly loginService: LoginService,\n    private readonly refreshSessionService: RefreshSessionService,\n    private readonly urlService: UrlService,\n    private readonly authWellKnownService: AuthWellKnownService\n  ) {}\n\n  preloadAuthWellKnownDocument(configId?: string): Observable<AuthWellKnownEndpoints> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(concatMap((config) => this.authWellKnownService.queryAndStoreAuthWellKnownEndPoints(config)));\n  }\n\n  /**\n   * Returns the currently active OpenID configurations.\n   *\n   * @returns an array of OpenIdConfigurations.\n   */\n  getConfigurations(): OpenIdConfiguration[] {\n    return this.configurationService.getAllConfigurations();\n  }\n\n  /**\n   * Returns a single active OpenIdConfiguration.\n   *\n   * @param configId The configId to identify the config. If not passed, the first one is being returned\n   */\n  getConfiguration(configId?: string): Observable<OpenIdConfiguration> {\n    return this.configurationService.getOpenIDConfiguration(configId);\n  }\n\n  /**\n   * Returns the userData for a configuration\n   *\n   * @param configId The configId to identify the config. If not passed, the first one is being used\n   */\n  getUserData(configId?: string): Observable<any> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(map((config) => this.userService.getUserDataFromStore(config)));\n  }\n\n  /**\n   * Starts the complete setup flow for one configuration. Calling will start the entire authentication flow, and the returned observable\n   * will denote whether the user was successfully authenticated including the user data, the access token, the configId and\n   * an error message in case an error happened\n   *\n   * @param url The URL to perform the authorization on the behalf of.\n   * @param configId The configId to perform the authorization on the behalf of. If not passed, the first configs will be taken\n   *\n   * @returns An object `LoginResponse` containing all information about the login\n   */\n  checkAuth(url?: string, configId?: string): Observable<LoginResponse> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(concatMap(({ allConfigs, currentConfig }) => this.checkAuthService.checkAuth(currentConfig, allConfigs, url)));\n  }\n\n  /**\n   * Starts the complete setup flow for multiple configurations.\n   * Calling will start the entire authentication flow, and the returned observable\n   * will denote whether the user was successfully authenticated including the user data, the access token, the configId and\n   * an error message in case an error happened in an array for each config which was provided\n   *\n   * @param url The URL to perform the authorization on the behalf of.\n   *\n   * @returns An array of `LoginResponse` objects containing all information about the logins\n   */\n  checkAuthMultiple(url?: string): Observable<LoginResponse[]> {\n    return this.configurationService\n      .getOpenIDConfigurations()\n      .pipe(concatMap(({ allConfigs }) => this.checkAuthService.checkAuthMultiple(allConfigs, url)));\n  }\n\n  /**\n   * Provides information about the current authenticated state\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns A boolean whether the config is authenticated or not.\n   */\n  isAuthenticated(configId?: string): Observable<boolean> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(map((config) => this.authStateService.isAuthenticated(config)));\n  }\n\n  /**\n   * Checks the server for an authenticated session using the iframe silent renew if not locally authenticated.\n   */\n  checkAuthIncludingServer(configId?: string): Observable<LoginResponse> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(concatMap(({ allConfigs, currentConfig }) => this.checkAuthService.checkAuthIncludingServer(currentConfig, allConfigs)));\n  }\n\n  /**\n   * Returns the access token for the login scenario.\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns A string with the access token.\n   */\n  getAccessToken(configId?: string): Observable<string> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(map((config) => this.authStateService.getAccessToken(config)));\n  }\n\n  /**\n   * Returns the ID token for the sign-in.\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns A string with the id token.\n   */\n  getIdToken(configId?: string): Observable<string> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(map((config) => this.authStateService.getIdToken(config)));\n  }\n\n  /**\n   * Returns the refresh token, if present, for the sign-in.\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns A string with the refresh token.\n   */\n  getRefreshToken(configId?: string): Observable<string> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(map((config) => this.authStateService.getRefreshToken(config)));\n  }\n\n  /**\n   * Returns the authentication result, if present, for the sign-in.\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns A object with the authentication result\n   */\n  getAuthenticationResult(configId?: string): Observable<any> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(map((config) => this.authStateService.getAuthenticationResult(config)));\n  }\n\n  /**\n   * Returns the payload from the ID token.\n   *\n   * @param encode Set to true if the payload is base64 encoded\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns The payload from the id token.\n   */\n  getPayloadFromIdToken(encode = false, configId?: string): Observable<any> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(\n      map((config) => {\n        const token = this.authStateService.getIdToken(config);\n\n        return this.tokenHelperService.getPayloadFromToken(token, encode, config);\n      })\n    );\n  }\n\n  /**\n   * Returns the payload from the access token.\n   *\n   * @param encode Set to true if the payload is base64 encoded\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns The payload from the access token.\n   */\n  getPayloadFromAccessToken(encode = false, configId?: string): Observable<any> {\n    return this.configurationService.getOpenIDConfiguration(configId).pipe(\n      map((config) => {\n        const token = this.authStateService.getAccessToken(config);\n\n        return this.tokenHelperService.getPayloadFromToken(token, encode, config);\n      })\n    );\n  }\n\n  /**\n   * Sets a custom state for the authorize request.\n   *\n   * @param state The state to set.\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   */\n  setState(state: string, configId?: string): Observable<boolean> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(map((config) => this.flowsDataService.setAuthStateControl(state, config)));\n  }\n\n  /**\n   * Gets the state value used for the authorize request.\n   *\n   * @param configId The configId to check the information for. If not passed, the first configs will be taken\n   *\n   * @returns The state value used for the authorize request.\n   */\n  getState(configId?: string): Observable<string> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(map((config) => this.flowsDataService.getAuthStateControl(config)));\n  }\n\n  /**\n   * Redirects the user to the Security Token Service to begin the authentication process.\n   *\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   * @param authOptions The custom options for the the authentication request.\n   */\n  authorize(configId?: string, authOptions?: AuthOptions): void {\n    this.configurationService.getOpenIDConfiguration(configId).subscribe((config) => this.loginService.login(config, authOptions));\n  }\n\n  /**\n   * Opens the Security Token Service in a new window to begin the authentication process.\n   *\n   * @param authOptions The custom options for the authentication request.\n   * @param popupOptions The configuration for the popup window.\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns An `Observable<LoginResponse>` containing all information about the login\n   */\n  authorizeWithPopUp(authOptions?: AuthOptions, popupOptions?: PopupOptions, configId?: string): Observable<LoginResponse> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(\n        concatMap(({ allConfigs, currentConfig }) => this.loginService.loginWithPopUp(currentConfig, allConfigs, authOptions, popupOptions))\n      );\n  }\n\n  /**\n   * Manually refreshes the session.\n   *\n   * @param customParams Custom parameters to pass to the refresh request.\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns An `Observable<LoginResponse>` containing all information about the login\n   */\n  forceRefreshSession(customParams?: { [key: string]: string | number | boolean }, configId?: string): Observable<LoginResponse> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(\n        concatMap(({ allConfigs, currentConfig }) =>\n          this.refreshSessionService.userForceRefreshSession(currentConfig, allConfigs, customParams)\n        )\n      );\n  }\n\n  /**\n   * Revokes the refresh token (if present) and the access token on the server and then performs the logoff operation.\n   * The refresh token and and the access token are revoked on the server. If the refresh token does not exist\n   * only the access token is revoked. Then the logout run.\n   *\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   * @param logoutAuthOptions The custom options for the request.\n   *\n   * @returns An observable when the action is finished\n   */\n  logoffAndRevokeTokens(configId?: string, logoutAuthOptions?: LogoutAuthOptions): Observable<any> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(\n        concatMap(({ allConfigs, currentConfig }) =>\n          this.logoffRevocationService.logoffAndRevokeTokens(currentConfig, allConfigs, logoutAuthOptions)\n        )\n      );\n  }\n\n  /**\n   * Logs out on the server and the local client. If the server state has changed, confirmed via check session,\n   * then only a local logout is performed.\n   *\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   * @param logoutAuthOptions with custom parameters and/or an custom url handler\n   */\n  logoff(configId?: string, logoutAuthOptions?: LogoutAuthOptions): Observable<unknown> {\n    return this.configurationService\n      .getOpenIDConfigurations(configId)\n      .pipe(\n        concatMap(({ allConfigs, currentConfig }) => this.logoffRevocationService.logoff(currentConfig, allConfigs, logoutAuthOptions))\n      );\n  }\n\n  /**\n   * Logs the user out of the application without logging them out of the server.\n   * Use this method if you have _one_ config enabled.\n   *\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   */\n  logoffLocal(configId?: string): void {\n    this.configurationService\n      .getOpenIDConfigurations(configId)\n      .subscribe(({ allConfigs, currentConfig }) => this.logoffRevocationService.logoffLocal(currentConfig, allConfigs));\n  }\n\n  /**\n   * Logs the user out of the application for all configs without logging them out of the server.\n   * Use this method if you have _multiple_ configs enabled.\n   */\n  logoffLocalMultiple(): void {\n    this.configurationService\n      .getOpenIDConfigurations()\n      .subscribe(({ allConfigs }) => this.logoffRevocationService.logoffLocalMultiple(allConfigs));\n  }\n\n  /**\n   * Revokes an access token on the Security Token Service. This is only required in the code flow with refresh tokens. If no token is\n   * provided, then the token from the storage is revoked. You can pass any token to revoke.\n   * https://tools.ietf.org/html/rfc7009\n   *\n   * @param accessToken The access token to revoke.\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns An observable when the action is finished\n   */\n  revokeAccessToken(accessToken?: any, configId?: string): Observable<any> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(concatMap((config) => this.logoffRevocationService.revokeAccessToken(config, accessToken)));\n  }\n\n  /**\n   * Revokes a refresh token on the Security Token Service. This is only required in the code flow with refresh tokens. If no token is\n   * provided, then the token from the storage is revoked. You can pass any token to revoke.\n   * https://tools.ietf.org/html/rfc7009\n   *\n   * @param refreshToken The access token to revoke.\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns An observable when the action is finished\n   */\n  revokeRefreshToken(refreshToken?: any, configId?: string): Observable<any> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(concatMap((config) => this.logoffRevocationService.revokeRefreshToken(config, refreshToken)));\n  }\n\n  /**\n   * Creates the end session URL which can be used to implement an alternate server logout.\n   *\n   * @param customParams\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns A string with the end session url or null\n   */\n  getEndSessionUrl(customParams?: { [p: string]: string | number | boolean }, configId?: string): Observable<string | null> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(map((config) => this.urlService.getEndSessionUrl(config, customParams)));\n  }\n\n  /**\n   * Creates the authorize URL based on your flow\n   *\n   * @param customParams\n   * @param configId The configId to perform the action in behalf of. If not passed, the first configs will be taken\n   *\n   * @returns A string with the authorize URL or null\n   */\n  getAuthorizeUrl(customParams?: { [p: string]: string | number | boolean }, configId?: string): Observable<string | null> {\n    return this.configurationService\n      .getOpenIDConfiguration(configId)\n      .pipe(concatMap((config) => this.urlService.getAuthorizeUrl(config, customParams ? { customParams } : undefined)));\n  }\n}\n","import { Injectable } from '@angular/core';\nimport { AbstractSecurityStorage } from './abstract-security-storage';\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class DefaultLocalStorageService implements AbstractSecurityStorage {\n  public read(key: string): any {\n    return localStorage.getItem(key);\n  }\n\n  public write(key: string, value: any): void {\n    localStorage.setItem(key, value);\n  }\n\n  public remove(key: string): void {\n    localStorage.removeItem(key);\n  }\n\n  public clear(): void {\n    localStorage.clear();\n  }\n}\n","// Public classes.\n\nexport * from './auth-options';\nexport * from './auth-state/auth-result';\nexport * from './auth-state/auth-state';\nexport * from './auth.module';\nexport * from './auto-login/auto-login-all-routes.guard';\nexport * from './auto-login/auto-login-partial-routes.guard';\nexport * from './config/auth-well-known/auth-well-known-endpoints';\nexport * from './config/config.service';\nexport * from './config/loader/config-loader';\nexport * from './config/openid-configuration';\nexport * from './interceptor/auth.interceptor';\nexport * from './logging/abstract-logger.service';\nexport * from './logging/log-level';\nexport * from './login/login-response';\nexport * from './login/popup/popup-options';\nexport * from './login/popup/popup.service';\nexport * from './oidc.security.service';\nexport * from './public-events/event-types';\nexport * from './public-events/notification';\nexport * from './public-events/public-events.service';\nexport * from './storage/abstract-security-storage';\nexport * from './storage/default-localstorage.service'\nexport * from './user-data/userdata-result';\nexport * from './validation/jwtkeys';\nexport * from './validation/state-validation-result';\nexport * from './validation/validation-result';\n","/*\n * Public API Surface of angular-oidc-mod\n */\n\nexport * from './lib';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AbstractLoggerService","i1.CustomLoggerService","i1.LoggerService","i2.AbstractSecurityStorage","i1.BrowserStorageService","i1.StoragePersistenceService","i1.CryptoService","i2.LoggerService","i2.RandomService","i3.LoggerService","i2.FlowsDataService","i3.FlowHelper","i4.StoragePersistenceService","i5.JwtWindowCryptoService","i1.HttpBaseService","i1.UrlService","i3.TokenValidationService","i4.FlowsDataService","i5.StoragePersistenceService","i6.DataService","i3.PublicEventsService","i4.TokenValidationService","i1.DataService","i2.StoragePersistenceService","i4.LoggerService","i5.TokenHelperService","i6.FlowHelper","i1.AuthStateService","i3.UserService","i3.DataService","i2.AuthStateService","i3.FlowsDataService","i4.UserService","i5.ResetAuthDataService","i2.TokenValidationService","i3.TokenHelperService","i5.EqualityService","i1.CodeFlowCallbackHandlerService","i2.ImplicitFlowCallbackHandlerService","i3.HistoryJwtKeysCallbackHandlerService","i4.UserCallbackHandlerService","i5.StateValidationCallbackHandlerService","i6.RefreshSessionCallbackHandlerService","i7.RefreshTokenCallbackHandlerService","i1.FlowsService","i4.IntervalService","i1.IFrameService","i2.FlowsService","i3.ResetAuthDataService","i5.AuthStateService","i6.LoggerService","i7.FlowHelper","i8.ImplicitFlowCallbackService","i9.IntervalService","i3.IntervalService","i4","i2.FlowHelper","i3.ImplicitFlowCallbackService","i4.CodeFlowCallbackService","i1.AuthWellKnownDataService","i2.PublicEventsService","i3.StoragePersistenceService","i2.UrlService","i3.SilentRenewService","i2.ResetAuthDataService","i3.FlowsService","i1.FlowHelper","i4.SilentRenewService","i6.AuthWellKnownService","i7.RefreshSessionIframeService","i8.StoragePersistenceService","i9.RefreshSessionRefreshTokenService","i10.UserService","i4.ConfigValidationService","i5.PlatformProvider","i7.StsConfigLoader","i1.ResetAuthDataService","i5.UserService","i6.AuthStateService","i8.RefreshSessionRefreshTokenService","i10.StoragePersistenceService","i11.PublicEventsService","i12.ConfigurationService","i1.CheckSessionService","i2.CurrentUrlService","i5.LoggerService","i7.CallbackService","i8.RefreshSessionService","i9.PeriodicallyTokenCheckService","i10.PopUpService","i11.AutoLoginService","i12.StoragePersistenceService","i13.PublicEventsService","i2.ResponseTypeValidationService","i3.UrlService","i4.RedirectService","i5.AuthWellKnownService","i6.PopUpService","i7.CheckAuthService","i8.ParService","i4.AuthWellKnownService","i5.PopUpService","i6.CheckAuthService","i6.FlowsDataService","i1.ParLoginService","i2.PopUpLoginService","i3.StandardLoginService","i1.AutoLoginService","i2.CheckAuthService","i3.LoginService","i4.ConfigurationService","i5","i2.ConfigurationService","i4.ClosestMatchingRouteService","i4.UrlService","i5.CheckSessionService","i6.ResetAuthDataService","i7.RedirectService","i4.TokenHelperService","i5.ConfigurationService","i7.FlowsDataService","i8.CallbackService","i9.LogoffRevocationService","i10.LoginService","i11.RefreshSessionService","i12.UrlService","i13.AuthWellKnownService"],"mappings":";;;;;;;;;;MAKa,kBAAkB,CAAA;AAE9B,CAAA;MAEqB,eAAe,CAAA;AAEpC,CAAA;MAEY,qBAAqB,CAAA;AAChC,IAAA,WAAA,CAA6B,aAA0D,EAAA;QAA1D,IAAa,CAAA,aAAA,GAAb,aAAa,CAA6C;KAAI;IAE3F,WAAW,GAAA;QACT,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;AACrC,YAAA,OAAO,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAC/B,SAAA;QAED,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;KACjC;AACF,CAAA;MAEY,mBAAmB,CAAA;AAC9B,IAAA,WAAA,CACmB,QAAiH,EAAA;QAAjH,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAyG;KAChI;IAEJ,WAAW,GAAA;QACT,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AAChC,YAAA,OAAO,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAChC,SAAA;AAED,QAAA,MAAM,mBAAmB,GAAG,IAAI,CAAC,QAA+B,CAAC;QAEjE,OAAO,mBAAmB,CAAC,IAAI,CAC7B,GAAG,CAAC,CAAC,KAAc,KAAI;AACrB,YAAA,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACxB,gBAAA,OAAO,KAA8B,CAAC;AACvC,aAAA;YAED,OAAO,CAAC,KAAK,CAA0B,CAAC;SACzC,CAAC,CACH,CAAC;KACH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