简体   繁体   English

DocuSign Connect 如何配置信封以接收身份验证失败的通知?

[英]DocuSign Connect how to configure envelope to receive notifications on authentication failure?

I am trying to manage authentication failed cases in my app.我正在尝试管理我的应用程序中的身份验证失败案例。 I have successfully established DocuSign Connect communication and receive notifications from DocuSign when envelopes are Completed or Voided.我已成功建立 DocuSign Connect 通信并在信封完成或作废时收到来自 DocuSign 的通知。 But now I have a case when fail Authentication (exemple wrong code entered 3 times on SMS authentication).但是现在我遇到了身份验证失败的情况(例如在 SMS 身份验证中输入了 3 次错误代码)。 In this case the envelope is locked for the signer.在这种情况下,签名者的信封被锁定。 I would like to be able to send notification to custommer service when this happens.我希望能够在发生这种情况时向客户服务发送通知。

According to this answer it is possible to get this information in a DocuSign Connect notification but I receive none.根据此答案,可以在 DocuSign Connect 通知中获取此信息,但我没有收到。

In my case I configure notifications per envelope through the API (not a global account configuration) like follows (C#):在我的情况下,我通过 API(不是全局帐户配置)为每个信封配置通知,如下所示(C#):

envelope.EventNotification = new EventNotification()
{
    Url = _webhookUrl,
    RequireAcknowledgment = "true",
    LoggingEnabled = "true",
    IncludeEnvelopeVoidReason = "true",
    IncludeDocuments = "false",
    IncludeCertificateOfCompletion = "false",
    IncludeCertificateWithSoap = "false",
    IncludeDocumentFields = "false",
    IncludeHMAC = "true",
    IncludeSenderAccountAsCustomField = "false",
    IncludeTimeZone = "true",
    UseSoapInterface = "false",
    EnvelopeEvents = new List<EnvelopeEvent>() {
        new EnvelopeEvent("Draft"),
        new EnvelopeEvent("Sent"),
        new EnvelopeEvent("Delivered"),
        new EnvelopeEvent("Completed"),
        new EnvelopeEvent("Declined"),
        new EnvelopeEvent("Voided") 
    },
    RecipientEvents = new List<RecipientEvent>() {
        new RecipientEvent(null, "Draft" ),
        new RecipientEvent(null, "Sent" ),
        new RecipientEvent(null, "Delivered" ),
        new RecipientEvent(null, "Completed" ),
        new RecipientEvent(null, "Voided" )
    }
};

Edit: I found that when creating a global configuration in administrator interface there is an extra possible event option "Authentication failed" seems like thats exactly what I need!编辑:我发现在管理员界面中创建全局配置时,有一个额外的可能事件选项“身份验证失败”似乎正是我所需要的!

在此处输入图片说明

But what is the value to provide with the API???但是提供 API 的价值是什么???

This option is not even documented in support center https://support.docusign.com/guides/dfs-admin-guide-envelope-recipient-events-ref此选项甚至没有记录在支持中心https://support.docusign.com/guides/dfs-admin-guide-envelope-recipient-events-ref

Any ideas?有任何想法吗?

Ok so I "almost" found the answer in swagger specs (available here ) that there are AuthenticationFailed and AutoResponded recipient events.好的,所以我“几乎”在 swagger 规范( 此处可用)中找到了答案,即有 AuthenticationFailed 和 AutoResponded 收件人事件。 And yes by adding AuthenticationFailed I get a webhook call whe SMS authentication fails.是的,通过添加 AuthenticationFailed,当 SMS 身份验证失败时,我会收到一个 webhook 呼叫。 So my final event notification configuration looks like follows:所以我的最终事件通知配置如下所示:

envelope.EventNotification = new EventNotification()
{
    Url = _webhookUrl,
    RequireAcknowledgment = "true",
    LoggingEnabled = "true",
    IncludeEnvelopeVoidReason = "true",
    IncludeDocuments = "false",
    IncludeCertificateOfCompletion = "false",
    IncludeCertificateWithSoap = "false",
    IncludeDocumentFields = "false",
    IncludeHMAC = "true",
    IncludeSenderAccountAsCustomField = "false",
    IncludeTimeZone = "true",
    UseSoapInterface = "false",
    EnvelopeEvents = new List<EnvelopeEvent>() { 
        new EnvelopeEvent("Completed"), 
        new EnvelopeEvent("Declined"), 
        new EnvelopeEvent("Voided") 
    },
    RecipientEvents = new List<RecipientEvent>() { 
        new RecipientEvent(null, "AuthenticationFailed"), 
        new RecipientEvent(null, "Completed"), 
        new RecipientEvent(null, "Declined")
    }
};

Unfortunatly the portions of the documentation related to Connect are very light!不幸的是,与 Connect 相关的文档部分非常少! Many parameters are not explained.很多参数没有解释。

After more testing it is still not working.经过更多测试,它仍然无法正常工作。 Actually I get the notification but the envelope status is "sent" and the <RecipientAuthenticationStatus /> is empty.实际上,我收到了通知,但信封状态为“已发送”,并且<RecipientAuthenticationStatus />为空。 And I have no way to determin an authentication error occured.而且我无法确定发生了身份验证错误。

错误案例是在 6 月份创建的 (CONNECT-1845),我们的工程师目前正在努力解决该问题

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

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