Closed Sarvesh-D closed 6 years ago
Normally Spring Security is returning a 401 for a rest call and only a 302 for page requests. So I guess it's more a problem with your spring security configuration. Did you see this issue? https://github.com/spring-projects/spring-boot/issues/12346
please note that the samples are outdated.
from spring boot admin 2.0 I have monitored via eureka to a microservice which exposes the actuator endpoint with oauth2; // sba client .antMatchers ("/ actuator / **"). hasRole ("ADMIN")
1- I get the token from a microservices oaut2 2- How do I send the token from sba to the actuator endpoint?
I am using spring boot 2 and spring boot admin 2. My SBA server is secured using spring security oauth2. I have seen your sample project for oauth. But when i my client application tries to register to SBA server, i get below error log:
In the logs i can see the client app is redirected to the SSO login path configured in SBA server. The client app already has security.oauth2.* properties set. Can you tell me what configuration i need to make on the client side?