gpt4 book ai didi

java - DocuSign Java JWT 身份验证失败,400 错误请求,consent_required

转载 作者:行者123 更新时间:2023-12-01 23:46:22 25 4
gpt4 key购买 nike

我正在尝试官方 DocuSign 示例 "Java JWT authentication code example"但遇到了麻烦。

我检查了该项目并刚刚编辑了 config.properties 文件(添加了凭据等)。我使用的是模拟帐户,因此身份验证服务器是 account-d.docusign.com

但我总是收到 400 Bad Request。我做了一些调试,发现内部错误代码是 {"error":"invalid_grant"}

你能帮我一下吗?官方示例项目对我不起作用...

<小时/>

编辑:

我将 clientId 更改为正确的,但现在我收到 {"error":"consent_required"}

最佳答案

已修复:

1)(不太确定,但是...)示例项目 eg-01-java-jwt 不请求范围模拟,我必须添加这行代码:scopes.add(OAuth.Scope_IMPERSONATION);

2)我不明白我必须首先将客户端/浏览器导航到获取同意页面(因为我认为这是同一个用户!!):https://account-d.docusign。 com/oauth/auth?response_type=token&scope=signature%20impersonation&client_id=xxxxxxxxxxxxxxxxxxxxxx&redirect_uri=https://client.example.com/callback

2.1) 确保首先在管理工具中注册 redirect_uri(集成 key 详细信息)。

2.2) 确保将 response_type 更改为 token

2.3) 确保使用 scop=signature%20impersonation

关于java - DocuSign Java JWT 身份验证失败,400 错误请求,consent_required,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58238818/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com