FaceAuthenticator
We recommend you to check this documentation in pub.dev to get more examples and extra information.
Privacy Policy and Terms & Conditions of Use
When using our plugin, please make sure that you agree with our Privacy Policy and our Terms and Conditions of Use.
Pre-requirements
Minimum configuration | Version |
Flutter | 1.12+ |
Dart | 2.12+ |
Android API | 21+ |
iOS | 13.0+ |
If you use Dart in a version below 2.12, check the compatible version here.
Settings
Android
In the file ROOT_PROJECT/android/app/build.gradle
, add:
iOS
In the file ROOT_PROJECT/ios/Podfile
, add:
Finally, add the camera permission to the file ROOT_PROJECT/ios/Runner/Info.plist
:
Using
FaceAuthenticator methods
Parameter | Required |
---|---|
Used to redirect the SDK to the desired environment in caf api. | No |
Used to change the SDK camera filter. It has the following options: CameraFilter.natural or CameraFilter.lineDrawing | No, the default is CameraFilter.lineDrawing |
Used to enable screenshots during the SDK scan. | No, the default is false |
Used to determines whether the SDK's loading screen will be implemented through client side or if will be used the default screen. If set to 'true,' the loading screen will be a standard SDK screen. If 'false,' You should provide an indeterminate progress indicator. | No, the default is false |
Used to set the image URL expiration time. | No, the default is null |
Enums
CafStage
Description | Values |
---|---|
Used to set the SDK stage on |
|
CameraFilter
Description | Values |
---|---|
Used to set the SDK's camera filter |
|
Time
Description | Values |
---|---|
Used to set the image URL expiration time. |
|
FaceAuthenticatorSuccess
Field |
---|
Signed response from the CAF server confirming that the captured selfie has a real face. This parameter is used to get an extra layer of security, checking that the signature of the response is not broken, or caused by request interception. If it is broken, there is a strong indication of request interception. |
signedResponse params
Event | Description |
| Request identifier. |
| Validation of a living person, identifies whether the user passed successfully or not. |
| Face match validation result. |
| Request token. |
| User identifier provided for the request. |
| Temporary link to the image, generated by our API. |
| User identifier provided for the SDK. |
| Sdk version in use. |
| Token expiration. |
| Return message. |
The isAlive parameter is VERY IMPORTANT, based on this validation, the user can be guided to continue the flow or not. In case of isAlive: true
, it would be able to continue with the journey. If isAlive: false
, this user is not valid and should be prevented from continuing their journey. Furthermore, the isMatch parameter indicates whether the Face Match passed successfully or not, returning isMatch: true
in case of success and false
in case of failure.
FaceAuthenticatorFailure
iOS
The FaceAuthenticatorFailure
object return the following parameters.
Field |
---|
Signed response from the CAF server confirming that the captured selfie has a real face. |
Error type returned by the SDK. Check the table below. |
Error message returned by the SDK. |
Error code returned by the SDK. Check the table below. |
In case of failure, the FaceAuthenticatorFailure
object will also return a signedResponse containing information. Within the signedResponse, the parameter isAlive defines the execution of liveness, where true is approved and false is rejected.
Code | Error Type | Description |
---|---|---|
1 |
| Try aganin |
2 |
| Error while trying to capture the execution token. |
3 |
| Error while attempting to execute liveness due to communication issues. |
4 |
| Error while performing the registration of the liveness execution. |
5 |
| An existing capture is already in progress. Wait until the current capture completes before starting a new one. |
6 |
| The user disallowed access to the camera when prompted. You should direct the user to re-try. |
7 |
| An error occurred with the video streaming process. The associated string (if available) will contain further information about the error. |
8 |
| A server-side error/token invalidation occurred. The associated string (if available) will contain further information about the error. |
9 |
| An unexpected and unrecoverable error has occurred. The associated string will contain further information about the error. These errors should be reported to iProov for further investigation. |
Android
The FaceAuthenticatorFailure
object return the following parameters.
Field |
---|
Error type returned by the SDK. |
Error message returned by the SDK. |
Error code returned by the SDK. |
Last updated