adding antmatchers for single container
This commit is contained in:
@@ -118,14 +118,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
@NoLogging
|
||||||
@NoLogging
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
http.csrf(csrf -> csrf.disable())
|
http.csrf(csrf -> csrf.disable())
|
||||||
// Add CORS Filter //http.cors().and().csrf().disable().
|
// Add CORS Filter //http.cors().and().csrf().disable().
|
||||||
.addFilterBefore(new CorsFilter(), ChannelProcessingFilter.class)
|
.addFilterBefore(new CorsFilter(), ChannelProcessingFilter.class)
|
||||||
.authorizeRequests(requests -> requests.antMatchers("/token/**").permitAll().antMatchers("/log2/**")
|
// adding backend/token for single container by Azmat 27-08
|
||||||
|
.authorizeRequests(requests -> requests.antMatchers("/token/**", "/backend/token/**", "/**/backend/token/**").permitAll().antMatchers("/log2/**")
|
||||||
.permitAll().antMatchers("/api/**").permitAll()
|
.permitAll().antMatchers("/api/**").permitAll()
|
||||||
// .antMatchers("/SqlworkbenchSqlcont/**").hasRole("ADMIN")
|
// .antMatchers("/SqlworkbenchSqlcont/**").hasRole("ADMIN")
|
||||||
.anyRequest().authenticated())
|
.anyRequest().authenticated())
|
||||||
@@ -139,6 +139,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public SessionRegistry sessionRegistry() {
|
public SessionRegistry sessionRegistry() {
|
||||||
return new SessionRegistryImpl(); // This tracks active sessions
|
return new SessionRegistryImpl(); // This tracks active sessions
|
||||||
|
|||||||
Reference in New Issue
Block a user