0

我正在使用 c#.net 代码与 salesforce 进行 OAuth2.0 授权(请在下面找到 url 示例)。

  - For authorization: SANDBOX URL/services/oauth2/authorize
  - For token requests: SANDBOX URL/services/oauth2/token
  • Sandbox 的 OAuth 2.0 授权在更新到 Spring 20 版本之前运行良好。

  • 将沙箱更新到 Spring 20 版本后,我发现使用 url SANDBOX URL/services/oauth2/authorize 无法获取“授权代码”代码,因此我无法使用令牌请求来获取令牌。

例如:假设我有 salesforce 沙盒端点 URL,例如:https ://test.salesforce.com/

授权网址:https ://test.salesforce.com/services/oauth2/authorize 令牌请求网址:https ://test.salesforce.com/services/oauth2/token

导航网址:https ://test.salesforce.com//services/oauth2/authorize?response_type=code&client_id=your_client_id&redirect_uri=https://login.salesforce.com/services/oauth2/success&prompt=login ";

现在,我正在使用 WPF webbrowser 在 url 上方导航以获取访问令牌,然后在输入正确的凭据后,我也没有从 salesforce sanbox 获得正确的重定向 URL。因此,我没有获得访问令牌。

4

0 回答 0