public Configure()

in clients/Application/src/app/views/auth/auth-configuration.service.ts [69:97]


  public Configure() {
      const setupAction$ = this.params$.pipe(
        map((customConfig) => {
            return {
                stsServer: customConfig.issuer,
                redirectUrl: customConfig.redirectUri,
                clientId: customConfig.clientId,
                responseType: customConfig.responseType,
                scope: customConfig.scope,
                postLogoutRedirectUri: `${window.location.origin}/signout`,
                startCheckSession: customConfig.start_checksession,
                silentRenew: false, // customConfig.useSilentRefresh,
                silentRenewUrl: customConfig.silentRefreshRedirectUri,
                postLoginRoute: '',
                forbiddenRoute: '/forbidden',
                unauthorizedRoute: '/unauthorized',
                logLevel: LogLevel.Debug,
                maxIdTokenIatOffsetAllowedInSeconds: 10,
                historyCleanupOff: true,
                useRefreshToken: true,
                autoUserinfo: false,
                cognitoDomain: customConfig.cognitoDomain || 'https://saascoffeekincorqobl.auth.us-east-1.amazoncognito.com',
            };
        }),
        switchMap((config) => this.oidcConfigService.withConfig(config))
    );
    return () => setupAction$.toPromise();

  }