Microservice Authentication strategy

前端 未结 3 821
我寻月下人不归
我寻月下人不归 2020-11-30 16:44

I\'m having a hard time choosing a decent/secure authentication strategy for a microservice architecture. The only SO post I found on the topic is this one: Single Sign-On i

3条回答
  •  遥遥无期
    2020-11-30 17:11

    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/

提交回复
热议问题