The sample code can be found in this code share. Just one thing to notice, the first call "POST /api/signerAuthenticationTokens" used in this sample is equivalent to "POST /api/authenticationTokens/signer/multiUse".
Duo
Duo LiangOneSpan Evangelism and Partner Integrations Developer
Reply to: Signer Authentication
Tuesday, October 27, 2020 at 08:19amHi Naresh,
Below is a sample package JSON where there are three signers with Q&A, SMS and KBA authentication methods:
{
"roles": [
{
"type": "SIGNER",
"index": 0,
"signers": [
{
"auth": {
"scheme": "CHALLENGE",
"challenges": [
{
"answer": "golf",
"question": "What's your favorite sport?",
"maskInput": false
}
]
},
"email": "[email protected]",
"firstName": "Patty",
"lastName": "Galant"
}
],
"name": "Signer1"
},
{
"type": "SIGNER",
"index": 0,
"signers": [
{
"auth": {
"scheme": "SMS",
"challenges": [
{
"answer": null,
"question": "+15515584587",
"maskInput": false
}
]
},
"email": "[email protected]",
"firstName": "John",
"lastName": "Smith"
}
],
"name": "Signer2"
},
{
"type": "SIGNER",
"index": 0,
"signers": [
{
"auth": {
"scheme": "NONE",
"challenges": []
},
"knowledgeBasedAuthentication": {
"signerInformationForEquifaxUSA": {
"firstName": "John",
"lastName": "Doe",
"streetAddress": "2020 Broadway Street",
"city": "New York",
"zip": "12345",
"state": "NY",
"timeAtAddress": 5,
"driversLicenseNumber": "1234567890",
"dateOfBirth": "1969-12-09T00:00:00Z",
"socialSecurityNumber": "123456789",
"homePhoneNumber": "1234567890"
}
},
"email": "[email protected]",
"firstName": "Mary",
"lastName": "Doe"
}
],
"name": "Signer3"
}
],
"status": "DRAFT",
"type": "PACKAGE",
"name": "Signer Authentication Example"
}
Duo
Duo Liang OneSpan Evangelism and Partner Integrations Developer
Reply to: Signer Authentication
Wednesday, October 28, 2020 at 02:33amHi Duo,
Thanks for the response.
we are interested to understand the signers' authentication mentioned in the below URL. Please help with clarifications for below questions:
1. How do we generate the token for signer
2. How do we use the token (session token) for signer's authenticity from REST API for completing the transaction
3. Sample code will be of great help
https://community.onespan.com/documentation/onespan-sign/guides/feature-guides/developer/authentication-tokens
Thanks
Naresh
Reply to: Hi Duo, Thanks for the…
Wednesday, October 28, 2020 at 08:18amThe sample code can be found in this code share. Just one thing to notice, the first call "POST /api/signerAuthenticationTokens" used in this sample is equivalent to "POST /api/authenticationTokens/signer/multiUse".
Duo
Duo Liang OneSpan Evangelism and Partner Integrations Developer