Skip to content
Snippets Groups Projects
Commit 1229570b authored by ThanKarab's avatar ThanKarab Committed by JerryPan44
Browse files

removing comments

parent f594ab0a
No related branches found
No related tags found
1 merge request!7Features/keycloak integration
...@@ -150,15 +150,13 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { ...@@ -150,15 +150,13 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
.and().logout().addLogoutHandler(authLogoutHandler()).logoutSuccessUrl(redirectAfterLogoutUrl) .and().logout().addLogoutHandler(authLogoutHandler()).logoutSuccessUrl(redirectAfterLogoutUrl)
.and().logout().permitAll() .and().logout().permitAll()
.and().csrf().ignoringAntMatchers("/logout").csrfTokenRepository(csrfTokenRepository()) .and().csrf().ignoringAntMatchers("/logout").csrfTokenRepository(csrfTokenRepository())
.and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class) .and().addFilterAfter(csrfHeaderFilter(), CsrfFilter.class)
.addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class); .addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
} }
else { else {
//keycloak http.antMatcher("/**")
//KeycloakConfiguration.getKeycloakSecurityContext(); .authorizeRequests()
// http.antMatcher("/**") .antMatchers("/**").permitAll().and().csrf().disable();
// .authorizeRequests()
// .antMatchers("/**").permitAll().and().csrf().disable();
} }
} }
......
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