How to enable or disable some of the UIN validator criterias in MOSIP?
This article talks about various UIN validator criterias or rules that we have in current implementation of MOSIP and how to configure some of those.
Current rules for UIN validation in MOSIP
UIN should not contain any alphanumeric characters
UIN should be of 10 digits
UIN should not contain any repeating numbers for 2 or more than 2 digits
UIN should not contain any sequential number for 3 or more than 3 digits
UIN should not have repeated block of numbers for 2 or more than 2 digits
The last digit in the number should be reserved for a checksum
The number should not contain '0' or '1' as the first digit.
First 5 digits should be different from the last 5 digits (example - 4345643456)
First 5 digits should be different to the last 5 digits reversed (example - 4345665434)
UIN should not be a cyclic figure (example - 4567890123, 6543210987)
UIN should be different from the repetition of the first two digits 5 times (example - 3434343434)
UIN should not contain three even adjacent digits (example - 3948613752)
UIN should not contain admin defined restricted number patterns
Configurations to modify some of the business rules for UIN generation & validation
Business Rules | Comments & Configurations |
---|---|
UIN should not contain any alphanumeric characters | MOSIP’s UIN generator always generates numeric UINs. We do not support alphanumeric UINs in the current version of MOSIP. |
UIN should be of 10 digits |
|
UIN should not contain any repeating numbers for 2 or more than 2 digits |
|
UIN should not contain any sequential number for 3 or more than 3 digits |
|
UIN should not have repeated block of numbers for 2 or more than 2 digits |
|
The last digit in the number should be reserved for a checksum |
|
The number should not contain '0' or '1' as the first digit. |
|
First 5 digits should be different from the last 5 digits |
|
First 5 digits should be different to the last 5 digits reversed |
|
UIN should not be a cyclic figure |
|
UIN should be different from the repetition of the first two digits 5 times |
|
UIN should not contain three even adjacent digits |
|
UIN should not contain admin defined restricted number patterns |
|
This is a work inprogress document. Please wait for the final version to be released.
Related articles