Securing microservices with Spring Security JWT
I would like to build a RESTful microservices architecture where each microservice acts as a resource server. Additionally, there will be an authorization server responsible only for user registration, authentication, and creation and validation of JWT tokens. The architecture will also include a simple gateway service. Therefore, the OAuth2 authorization code flow is not suitable for me since it is based on redirects (oauth2client gateway with TokenRelay filter -> oauth2authorization server etc.).
So, I have created the following components: