I have a requirement where all of the calls are authenticated with JWT/Filters but now I want that all the calls having /restexternal/ should bypass jwt authentication and should go with basic authentication. Is it possible to have 2 web security configurer or something? How we can achieve this?
I am able to exclude specific url from JWT authentication but how can I ask spring to go for basic auth? TIA
Spring Security supports multiple authentication also. You can refer here
You can refer this for different authentication for different APIs address: spring-multiple-authentication-methods-for-different-api-endpoints