简体   繁体   English

为什么Docusign认证需要重定向URL? 我们可以在不重定向 URL 的情况下验证 API 吗?

[英]Why Docusign authentication need Redirect URL ?? Can we authenticate the API without Redirect URL?

I am trying to use the Docusign API for my development.我正在尝试使用 Docusign API 进行开发。 But here is one issue with the authentication API.. it needs a Redirect URL.但这里是身份验证 API 的一个问题。它需要重定向 URL。 Because I need to use this API in the Rest API tool and in AJAX call.因为我需要在 Rest API 工具和 ZA34A6659BCEAE779F281855E 中使用这个 API so it is not possible to provide the Redirect URL.因此无法提供重定向 URL。

Can't we call this API without Redirect URL in AJAX or in REST API tool. Can't we call this API without Redirect URL in AJAX or in REST API tool.

This is part of the rule of OAuth 2.0 The redirectUrl is used to actually redirect the user somewhere after they authenticate.这是 OAuth 2.0 规则的一部分,redirectUrl 用于在用户进行身份验证后将其实际重定向到某处。 But it is also used to ensure that the clientId (integration key) was used by the right app to go to a valid URL that was registered with them.但它也用于确保正确的应用程序使用 clientId(集成密钥)到 go 到向他们注册的有效 URL。 This is to protect from potential phishing.这是为了防止潜在的网络钓鱼。 So, yes, you need to have one, and you need to ensure it's registered for your integration key.所以,是的,您需要拥有一个,并且您需要确保它已为您的集成密钥注册。

If your app is a single page application then you should use OAuth Implicit grant.如果您的应用程序是单页应用程序,那么您应该使用 OAuth 隐式授权。

If your app is a thick client app, then Implicit grant is also used.如果您的应用程序是胖客户端应用程序,则还使用隐式授权。 In this case, it is common to use a private scheme such as larrysApp://app/redirect as the redirect url and register the scheme with the OS so your app will receive the URL.在这种情况下,通常使用larrysApp://app/redirect等私有方案作为重定向 url 并向操作系统注册该方案,以便您的应用程序将收到 URL。

Also, please be sure to NOT use the authentication category of API methods in the DocuSign eSignature API.此外,请务必不要在 DocuSign 电子签名 API 中使用 API 方法的身份验证类别。 They're obsolete.它们已经过时了。 Instead, use OAuth, as documented on the DevCenter而是使用 OAuth,如DevCenter中所述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM