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