[家庭作业问题]什么是OAuth中的授权授予?

时间:2020-03-28 06:37:23

标签: rest api oauth

问题:

In OAuth the Authorization Grant:  
  (a). is a token accompanying the request to access the customer information;  
  (b). can be used multiple times until the expiry is reached;  
  (c). is a token generated when the customer agree to authorize access to the data;  

我将回答以下问题,请任何人指出我的错误。

1 个答案:

答案 0 :(得分:0)

我根据下图给出了答案:
(a)是错误,因为授权授予是在步骤2中发回服务器的令牌。 (但是由于服务器B在步骤3将请求连同请求一起发送到服务器A,我们可以认为这是真的吗?)
(b)错误,因为Oauth只能使用一次,否则将不再安全;
(c)是正确:我们可以看下面的图片,B在步骤1向客户端发送访问客户端数据的请求,并且客户端同意然后在步骤1中使用授权授权(令牌)进行响应2。

如您所见,我对(a)有点困惑,如果有人想帮忙,请给我一些建议!谢谢!

enter image description here