rajiv-nagpures…

Signer Authentication Tokens

0 votes
Trying to use Signer Authentication Tokens but this code always gets me “Unauthorized Access”. Please let me know what I am doing wrong. Map signerSessionFields = new LinkedHashMap(); signerSessionFields .put("auditInfo", project.getAuditTrailInformation()); String signerAuthenticationToken = eslClient .getAuthenticationTokensService() .createSignerAuthenticationToken(packageId, userRole, signerSessionFields); String baseUrl = apiHost.replace("/api", ""); String url = String .format("%s/auth?signerAuthenticationToken=%s&target=%s/packages/%s/sign", baseUrl, new AuthenticationClient(baseUrl) .getSessionIdForSignerAuthenticationToken(signerAuthenticationToken), baseUrl, packageId);

Reply to: Signer Authentication Tokens

0 votes
Hey Rajiv, If you're wanting the signing session redirect URL, you should just be able to do this:
            String signerAuthenticationToken = eslClient.getAuthenticationTokenService().createSignerAuthenticationToken(String packageId, "[email protected]");
            AuthenticationClient authenticationClient = new AuthenticationClient("https://sandbox.e-signlive.com");
            String generatedLinkToSigningSession = authenticationClient.buildRedirectToSigningForSigner(signerAuthenticationToken, String packageId);
Let me know if that doesn't work (I have an example in C#.NET and just referenced the doc to make it into Java).

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off