Unable to have a secure and non secure endpoint in a single Oauth secured Spring controller -
i putting rest api using spring boot secured via oauth2. have security application built working fine managing jwt tokens. i putting separate application handle general user profile resource requests such forgot password, registration , profile operations. annotated enableoauth2resource correctly adding oauth2authenticationprocessingfilter filter chain. @springbootapplication @enableoauth2resource public class profileapplication extends springbootservletinitializer { public static void main(string[] args) throws ioexception { springapplication.run(profileapplication.class, args); } @override protected springapplicationbuilder configure(springapplicationbuilder application) { return application.sources(profileapplication.class); } } the challenge facing cannot find way configure security post requests /profiles endpoint unsecured while requests or put pass in derived @authenticationprincipal provided bearer token. i want have following i...