Custom verifications
How can I customise verifications?​
MyNextID Verification Engine enables users to define it's own set of verifications through scopes in the verify API. Scopes are defined in an array of strings inside the body of the request, e.g.:
"scopes": [ "validate:timestamp#validFrom", "signature" ]
Check the list of available scopes:
| Scope | Functionality |
|---|---|
| did | Checks the credential for did documents and validates them |
| schema | Validates the credentialSchema field. As a bonus, an end user can add their own schema to validate the parsed credential payload |
| signature | Tests the signature of the entire credential |
| status | Tests the credentialStatus field |
| status:revocation | Tests the credentialStatus field for revocation entries only |
| status:suspension | Tests the credentialStatus field for suspension entries only |
| validate | Validates the timestamps in the credential, if they are all still valid |
| validate:expirationDate | Validates if the field expirationDate is valid compared to the current time |
| validate:issuanceDate | Validates if the field issuanceDate is valid compared to the current time |
| validate:validFrom | Validates if the field validFrom is valid compared to the current time |
You can also list available scopes by using this API.
Try our test application​
You can try our test application that implements all available APIs and scopes here.