spring-attic / spring-security-oauth

Support for adding OAuth1(a) and OAuth2 features (consumer and provider) for Spring web applications.
http://github.com/spring-projects/spring-security-oauth
Apache License 2.0
4.69k stars 4.04k forks source link

Getting 401 error while refresh spring config. #989

Open dipakray1 opened 7 years ago

dipakray1 commented 7 years ago

Hi, getting following error while calling the http://localhost:8080/message

status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/refresh"

followed https://spring.io/guides/gs/centralized-configuration/#initial

vinnymurugan commented 7 years ago

@dipakray1 At the bottom of the link you followed, they have noted

we set management.security.enabled=false in the client app to make this easy to test (by default since Spring Boot 1.5 the Actuator endpoints are secure by default). By default you can still access them over JMX if you don’t set the flag.