Commit c7bf858b authored by gkhan's avatar gkhan

security changes added

parent bfe2431a
Pipeline #2743 failed with stage
in 0 seconds
...@@ -13,6 +13,7 @@ public class SecurityConfig { ...@@ -13,6 +13,7 @@ public class SecurityConfig {
public SecurityWebFilterChain configure( ServerHttpSecurity http ) throws Exception { public SecurityWebFilterChain configure( ServerHttpSecurity http ) throws Exception {
http.csrf().disable().authorizeExchange() http.csrf().disable().authorizeExchange()
.pathMatchers("/oauth2/**", "/login/**").permitAll() .pathMatchers("/oauth2/**", "/login/**").permitAll()
.pathMatchers(HttpMethod.GET,"/getDefaultFilterDetails").permitAll() .pathMatchers(HttpMethod.GET,"/getDefaultFilterDetails").permitAll()
.pathMatchers(HttpMethod.GET,"/api/**") .pathMatchers(HttpMethod.GET,"/api/**")
......
...@@ -22,5 +22,6 @@ public class AppRouterConfig { ...@@ -22,5 +22,6 @@ public class AppRouterConfig {
.GET("/api/getCRCDetails",pricingHandler::getCRCDetails) .GET("/api/getCRCDetails",pricingHandler::getCRCDetails)
.GET("/api/getCRCDetails2",pricingHandler::getCRCDetails) .GET("/api/getCRCDetails2",pricingHandler::getCRCDetails)
.build(); .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