当遇到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'
期待“令牌”的响应。