In my current system, we are using below functionality for spring security gateway which is mentioned below.
http
.csrf().disable()
.exceptionHandling().and()
.httpBasic().disable()
but now i want to build a new Endpoint which will use HttpBasic security so how to manage this things using PathMatcher?
if we want to use different configuration methods for httpBasic disable or httpBasic enable. so how it will work for me?
when i will use two filter inside same class then i will get below error..
Description:
The bean 'conversionServicePostProcessor', defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true