iFrame Integration
To use face authentication with an iFrame, insert the verification platform URL directly into your iframe tag:token query string parameter is obtained after generating a token.
After the process is finished, you may close the iframe and display a desired page to your client.
| Query String Parameter | Example Value |
|---|---|
token | 3FA5TFPA2ZE3LMPGGS1EGOJNJE |
https://face.authentication.idenfy.com/?token=3FA5TFPA2ZE3LMPGGS1EGOJNJE
Code example
Webhook
You can receive information when face authentication actions are performed by setting up) aFACIAL_AUTHENTICATION notification type webhook.
Possible status values
| Name | Description |
|---|---|
SUCCESS | Authentication is successful. This message is also sent upon successful enrollment. |
FAILED | Authentication failed due to fraudulent activity or other possible vulnerabilities. This message is also sent upon enrollment failure. |
EXPIRED | Face authentication token expired before the user started the process. |
CANCELED | Face authentication session was cancelled by the user. |
Possible failReason values
Webhook response example (EXPIRED)
iFrame Console Status Values
Information about the face authentication statuses is available in the browser console on thedata object.
| Name | Description |
|---|---|
APPROVED | The user completed face authentication and it was approved. |
FAILED | The user completed face authentication but it failed. |
To assess the face authentication session, evaluate the webhooks sent from the back-office. The statuses in the iFrame console are complementary.