Spring security permitAll() does not work -
<dependency> <groupid>org.springframework.security.oauth</groupid> <artifactid>spring-security-oauth2</artifactid> <version>2.0.5.release</version> </dependency>
i have created spring-boot application purely severed resource server.
@configuration @enableresourceserver public class resourceserverconfiguration extends resourceserverconfigureradapter { @override public void configure(httpsecurity http) throws exception { http.authorizerequests().anyrequest().permitall(); } }
in configuration class, did above (allow everything, experiment purpose). however, still seems requests come server got 401 unauthorised error. permitall() not seem work.
am missing here?
thanks.
Comments
Post a Comment