Skip to main content

Signer verification with MobbID

In processes where it is essential that only the genuine person signs, MobbSign can work with MobbID to verify the signer before the document is signed. When the signer confirms their signature, it is verified against the signature enrolled for them in MobbID, and the document is signed only if the verification succeeds. Otherwise, the onErrorOccurred block reports the error.

1. Add the MobbID extension​

The libs-extension folder of the distribution contains the MobbID extension. Add it to your project as you did with the SDK frameworks, and link these frameworks: CoreMotion, AVFoundation, AssetsLibrary and CoreMedia.

2. Configure the verification​

Set the verifier and enable the verification of the next signature with the identifier of the user in MobbID:

SignatureVerificator *verificator = [[MobbIDSignatureVerificator alloc] init];
self.mobbSignView.signatureVerificator = verificator;

SignatureConfiguration *config = [[SignatureConfiguration alloc] init];
[config setVerification:YES];
[config setUserId:userId];
[self.mobbSignView configureNextSignature:config];

Creating the user in MobbID and enrolling their signature are outside the scope of this guide. See the MobbID documentation.