访问oidc的/ token端点时出现“错误”:“ invalid_grant”

时间:2019-04-21 10:11:13

标签: openid-connect oidc

当遇到Authorization_code Grant类型的OIDC /令牌端点时,遇到“”错误“ ” invalid_grant“ 错误。出现” error_description“ “授予请求无效”

/auth端点工作正常,因为我能够生成代码。

使用以下curl命令通过邮递员进行尝试。

curl -X POST \
  http://localhost:8000/token \
  -H 'authorization: Basic dGVzdF9vYXV0aF9hcHA6c3VwZXJfc2VjcmV0' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'postman-token: 758ae0e0-26fd-20e5-d4fe-cff3f5432b32' \
  -d 'grant_type=authorization_code&scope=openid%20&code=68498567-4623-4d80-a1c2-27f5bbc2c087&redirect_uri=https%3A%2F%2Ftestapp%2Fsignin-oidc'

期待“令牌”的响应。

0 个答案:

没有答案