How to use OpenID or OAuth for internal first-party authentication?

前端 未结 2 793
广开言路
广开言路 2021-01-31 10:24

I am working on an internal authentication system for users of a set of of RESTful web applications. Our intention is that a user should be able to sign-on once via a web form

2条回答
  •  情话喂你
    2021-01-31 11:11

    Oauth supports multiple different kinds of flows. You can use the client crendentials flow from Oauth 2.0 to avoid asking the user to grant permission for every app (this is intended for the cases where you control both the server and the app or where you want to preauthorize certain apps). This post does a good job explaining everything: http://tatiyants.com/using-oauth-to-protect-internal-rest-api/

提交回复
热议问题