Sample PID Data

As per the API details mentioned above the PID data should be BASE64 encoded before passing it to any API.

Things to consider for PidData

  • The PidData should contain Data type="X" (for XML).
  • The PidData should contain DeviceInfo with a mc parameter.
  • The mc parameter is the device public key certificate signed by Device Provider Key. (To verify your certificate, visit https://www.sslshopper.com/certificate-decoder.html).
  • For more details, refer Section 2.3 PID Creation – Signing and Encrypting Biometrics from UIDAI guidelines.

https://uidai.gov.in/images/resource/aadhaar_registered_devices_2_0_09112016.pdf

Update value of fType parameter from 0 to 2

As per the strict guidelines of NPCI on 'FIR-FMR single PID block implementation in Aadhar-based biometric authentication. We need to capture the fingerprint data of our end-user with an updated PID fType value. In order to do that Frontend code which is responsible to capture finger data, needs to pass value of fType = 2 rather than 0; this will return PID XML with the updated fingerprint data format and same can be passed over in the API.

PID data before encoding

PID data after BASE64 encoding