Microservice Authentication strategy

Based on what I understand, a good way to resolve it is by using the OAuth 2 protocol (you can find a little more information about it on http://oauth.net/2/)

When your user logs into your application they will get a token and with this token they will be able to send to other services to identify them in the request.

OAuth 2 Model

Example of Chained Microservice Design
Architecture Model

Resources:

  • http://presos.dsyer.com/decks/microservice-security.html
  • https://github.com/intridea/oauth2
  • https://spring.io/guides/tutorials/spring-security-and-angular-js/

Leave a Comment