|
|
|
@ -21,21 +21,19 @@ const keycloakConfig: AuthConfig = { |
|
|
|
|
//dummyClientSecret: 'f27746f4-e603-441e-a256-3ddd5b19ba54',
|
|
|
|
|
dummyClientSecret: '82702d7b-e44b-4415-9c80-54774a58e1dc', |
|
|
|
|
|
|
|
|
|
responseType: 'code', |
|
|
|
|
silentRefreshRedirectUri: window.location.origin + '/silent-refresh.html' , |
|
|
|
|
// To configure your solution for code flow + PKCE you have to set the responseType to code
|
|
|
|
|
responseType: 'code',
|
|
|
|
|
|
|
|
|
|
// set the scope for the permissions the client should request
|
|
|
|
|
// The first four are defined by OIDC.
|
|
|
|
|
// Important: Request offline_access to get a refresh token
|
|
|
|
|
// The api scope is a usecase specific one
|
|
|
|
|
scope: 'openid profile email', |
|
|
|
|
showDebugInformation: true, |
|
|
|
|
useSilentRefresh: true, // Needed for Code Flow to suggest using iframe-based refreshes
|
|
|
|
|
silentRefreshTimeout: 5000, // For faster testing
|
|
|
|
|
timeoutFactor: 0.25, // For faster testing
|
|
|
|
|
useSilentRefresh: true, // Activate silent refresh for code flow
|
|
|
|
|
silentRefreshTimeout: 5000,
|
|
|
|
|
timeoutFactor: 0.25, |
|
|
|
|
sessionChecksEnabled: true, |
|
|
|
|
clearHashAfterLogin: false, // https://github.com/manfredsteyer/angular-oauth2-oidc/issues/457#issuecomment-431807040,
|
|
|
|
|
nonceStateSeparator : 'semicolon' // Real semicolon gets mangled by IdentityServer's URI encoding
|
|
|
|
|
nonceStateSeparator : 'semicolon' // Real semicolon gets mangled by Keycloak's URI encoding
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
export const environment = { |
|
|
|
|