Build and Secure Microservices with Spring Boot 2.0 and OAuth 2.0

José Lecaros

hi. Thanks for the samples!
I’ve tried this locally (for webflux) and I’ve been successful on login and getting a new token using the endpoints.
However, once I try to access protected endpoints in my spring reactive API, I’m redirected to “/oauth2/authorization/okta” with a 302 http code.
I’ve marked the resource with @PreAuthorize annotation using hasScope and even with permitAll but the app always redirect to the same.
Can you please shed a light on this?

Thanks!