I currently tried to understand the concept of secured microservices and want to use Spring Boot and Spring Security.
Frontend: login via oauth2 provider + token retrieval.
REST-API: request with token in header + token validation + return myListOfinterestingThings()
I thought the Security 5 library is a nice tool to implement this approach. This is the example I tried but I don't know how to ensure that my REST-API don't redirect to login page.
Did I need to rely on a custom filter, that I have to implement? I thought the "magic" of Spring Boot and Security 5 would be strong enough :D
https://github.com/oktadeveloper/okta-spring-security-5-example