【发布时间】:2017-07-28 19:45:36
【问题描述】:
我按照OAuth authorization code grant的文章流获取token
最初我提出了要求:
dev234.service-now.com/oauth_auth.do?response_type=code&client_id=****534e4e81b7f
以及允许访问后的响应:
http://callback-url?code=Z2YYGhgfh1tMoFPDO7Dr0nZuPnhQPs53qwkm_Sw99gpUf92gU3x_OOuoOqdYBvlPFF01pOfgZg9VoXpCruSRYQ
之后获取token:
dev234.service-now.com/oauth_token.do?grant_type=authorization_code&code=<***>&client_id=<***>&client_secret=<***>
当我请求这个时,抛出错误
{"error_description": "access_denied","error": "server_error"}
我不能得到 json 格式的 access_token 和 refresh_token 吗?
【问题讨论】: