I have been using spring boot security oauth to secure the api end points, but i need to allow certain apis to work without authentication others to work only after authentication.
Tried using overriding the configure(httpsecurity) with permitall option url level and all also configure websecurity ignore options, None of them working and irrespective of all the over riding all apis expecting auth token in headers
spring-security-oauth2 spring-security-oauth2-resource-server spring-security-oauth2-jose dependencies are used and resourceserver.jwt.jwk-set-uri of auth2 being used for auth config
springboot version 2.2.4
need a solution where we can seggregate in the security filter which all api should use authentication and how to disable authentication for other apis