import { environment } from '@env/environment' ; import { AuthConfig } from 'angular-oauth2-oidc' ; const authConfig = { issuer : environment . auth . issuer , redirectUri : environment . baseUrl + 'dashboard' , postLogoutRedirectUri : environment . baseUrl + 'home' , silentRefreshRedirectUri : environment . baseUrl + 'silent-refresh.html' , clientId : environment . auth . clientId , strictDiscoveryDocumentValidation : false , scope : 'openid profile email' , showDebugInformation : true , } ; export const authConfigImplicit = { ... authConfig , oidc : true , responseType : 'id_token token' , sessionChecksEnabled : true , useIdTokenHintForSilentRefresh : true , timeoutFactor : environment . production ? 0.75 : 0.1 , } ; export const authConfigCodeFlow = { ... authConfig , oidc : true , sessionChecksEnabled : false , useIdTokenHintForSilentRefresh : true , timeoutFactor : environment . production ? 0.75 : 0.1 , disableAtHashCheck : true , scope : 'openid profile email ngxapi-audience' , responseType : 'code' , } ; export const authConfigHybridFlow = { ... authConfigCodeFlow , } ; export const authConfigPassword = { ... authConfig , oidc : false , } ;