I have a REST API secured with OAuth2.0 I am able to get the access-token using http://localhost:email@example.com&password=mypass(along with username pass basic auth).
But when I am trying to access http://localhost:8085/signup , API returns a 401 unauthorized error.
Though I have used antMatchers("/signup").permitAll(), why API is expecting a access-token to access this resource? Passing access-token along with this request would signup a user.
This is my resource server configuration