Reputation: 961
I have embedded docusign ui in my app.its working fine in lower environments.But user is being kick out from docusign ui within 4-5 seconds in docusign production.I know there is session timeout configuration ,it is configured 20 minutes.Anyone have faced this issue..any suggestion/help is appreciated
Retrieve docusign embedded url
public async Task<EmbeddedSigningUrls> BuildEmbeddedDocSigningUrlAsync(
string signerName, string signerEmail,
string redirectAfterSigningBaseUrl,
string envelopeId)
{
var viewOptions = new RecipientViewRequest()
{
ReturnUrl =
$"{redirectAfterSigningBaseUrl}?{RedirectUriBuilderParser.SigningOperationIdQueryParamName}={envelopeId}",
ClientUserId = signerEmail,
AuthenticationMethod = "password", // <<== not "email"
UserName = signerName,
Email = signerEmail
};
var envelopesApi = new EnvelopesApi();
var recipientView = await envelopesApi.CreateRecipientViewAsync(await AccountAsync(), envelopeId,
viewOptions);
return new EmbeddedSigningUrls
{
EmbeddedSigningUri = new Uri(recipientView.Url)
};
}
Upvotes: 0
Views: 173
Reputation: 14050
You need to update your code to this:
var viewOptions = new RecipientViewRequest()
{
ReturnUrl =
$"{redirectAfterSigningBaseUrl}?{RedirectUriBuilderParser.SigningOperationIdQueryParamName}={envelopeId}",
ClientUserId = signerEmail,
AuthenticationMethod = "none", // <<== not "email"
UserName = signerName,
Email = signerEmail
};
As your appliaction is just embedding a URL for the signing and is not adding additional authentication layer beyond the API calls that it is making.
Upvotes: 1