简体   繁体   English

这是OAUTH2和OpenID Connect的好用例吗

[英]Is this a good use case for OAUTH2 and OpenID Connect

I would like to see if Oauth2/OpenIdConnect will work with our scenario. 我想看看Oauth2 / OpenIdConnect是否适用于我们的方案。

Normally, our clients log into our system, a session is created and client is redirect to our reports.aspx page. 通常,我们的客户登录到我们的系统,创建一个会话,并将客户重定向到我们的reports.aspx页面。

Our clients are lazy and want a way to simply login once to our site through their vendor's site and our vendor does not want to keep a user management database when we already have a user management db. 我们的客户很懒惰,希望有一种方法可以简单地通过其供应商的站点登录一次我们的站点,而当我们已经有一个用户管理数据库时,我们的供应商不希望保留用户管理数据库。

Our clients are working with their vendor to have their client app authenticate with us and then they can get re-directed to our reports.aspx page. 我们的客户正在与他们的供应商合作,以使他们的客户应用程序通过我们进行身份验证,然后可以将他们重定向到我们的report.aspx页。 Kind of like single sign on. 有点像单点登录。

In the Oauth2 specs, there's a lot of references made to RESTful API end points. 在Oauth2规范中,有很多关于RESTful API端点的参考。 What if you don't have RESTful api end points? 如果您没有RESTful API端点怎么办? Following the Authorization flow, after the client app exchanges the authorization code for an access token and ID token, we will return a query string to redirect to our reports.aspx (not the vendor's redirect URI). 按照授权流程,在客户端应用交换访问令牌和ID令牌的授权代码之后,我们将返回查询字符串以重定向到我们的report.aspx(而不是供应商的重定向URI)。

We are not exposing endpoints where the vendor can retrieve the data on our client's behalf. 我们没有公开端点可以让供应商代表客户检索数据的端点。 We are simply redirecting the user to our pages, once the user is authenticated from the vendor's site. 一旦从供应商站点对用户进行身份验证,我们便将用户重定向到我们的页面。

is this a good use case for OAUTH2/OpenID Connect? 这是OAUTH2 / OpenID Connect的好用例吗?

No oauth2 rely on an authorization server which expose both authorization code and access token endpoint to support all possible oauth flows (some simple flows do not require authorization code endpoint). 没有任何oauth2依赖于公开授权码和访问令牌端点的授权服务器来支持所有可能的oauth流(某些简单流不需要授权码端点)。

Authorization [code] flow, after the client app exchanges the authorization code for an access token and ID token 客户端应用交换访问令牌和ID令牌的授权代码后的授权[代码]流

Where will the client obtain its code and exchange it against the access token if it have no authorization server to deal with ? 如果没有授权服务器要处理,客户端将在哪里获取代码并与访问令牌交换代码?

See http://www.bubblecode.net/en/2016/01/22/understanding-oauth2/ 参见http://www.bubblecode.net/zh/2016/01/22/understanding-oauth2/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM