Skip to content
Snippets Groups Projects
Commit 4afa62b6 authored by ThanKarab's avatar ThanKarab
Browse files

Fixed log level env variables for portal-backend.

parent 2c515aaf
No related branches found
No related tags found
1 merge request!19Feat/186 experiment refactor
......@@ -71,4 +71,5 @@ keycloak:
resource: {{ .Env.CLIENT_ID }}
credentials:
secret: {{ .Env.CLIENT_SECRET }}
principal-attribute: "preferred_username"
# logoutUrl: {{ .Env.LOGOUT_URL }}
\ No newline at end of file
......@@ -122,8 +122,9 @@ public class SecurityConfiguration extends KeycloakWebSecurityConfigurerAdapter
.accessDeniedHandler(new CustomAccessDeniedHandler())
// TODO .and().logout().addLogoutHandler(authLogoutHandler()).logoutSuccessUrl(redirectAfterLogoutUrl)
.and().logout().permitAll()
.and().csrf().ignoringAntMatchers("/logout").csrfTokenRepository(csrfTokenRepository())
.and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class)
.and().csrf().disable() // TODO Remove
//.and().csrf().ignoringAntMatchers("/logout").csrfTokenRepository(csrfTokenRepository())
//.and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class)
; // TODO ?? .addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
} else {
http.antMatcher("/**")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment