Commit 0d2603e2 authored by Jagadeshwar's avatar Jagadeshwar

Added whitelist url

parent ad23400a
Pipeline #2711 failed with stage
in 0 seconds
......@@ -37,9 +37,10 @@ public class SecurityConfig {
public SecurityWebFilterChain configure( ServerHttpSecurity http ) throws Exception {
http.csrf().disable().authorizeExchange()
.pathMatchers(HttpMethod.POST,"/oauth2/**", "/login/**").permitAll()
//.hasAnyRole()
//.pathMatchers(HttpMethod.GET,"/api")
.pathMatchers(HttpMethod.GET,"/getDefaultFilterDetails").permitAll()
.anyExchange().authenticated().and().oauth2Login()
.authenticationSuccessHandler(new WebFilterChainServerAuthenticationSuccessHandler());
return http.build();
......
Markdown is supported
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