A suite of modules that integrate Drupal with DigiLocker, India's national document wallet.

Modules

  • Digital Locker Issuer: publishes content as digitally signed certificate PDFs and serves them to DigiLocker over the Pull API, with publish and revoke actions for the Push API.
  • Digital Locker Requester: lets a user attach a document from their own DigiLocker account to a file field.
  • Digital Locker Issuer Example: a worked example of customising the generated certificate.
  • Digital Locker Login: lets people sign in, register or verify their account with DigiLocker (Meri Pehchaan). Because DigiLocker accounts are Aadhaar-backed, one person can verify only one account. The site never stores the Aadhaar number or other identity data, only a keyed hash of the DigiLocker ID. It needs Meri Pehchaan sign-in credentials from the DigiLocker partner portal.

Becoming a DigiLocker issuer or requester requires onboarding through the DigiLocker partner portal, which issues the credentials these modules ask for.

Requirements (2.1.x)

  • Drupal 11.2 or later
  • PHP 8.3 or later, with the gd and openssl extensions
  • Pathauto and TCPDF 2.x

Installation

composer require drupal/digitallocker
drush en digitallocker_issuer

See the README for configuration and the API specifications. The 7.x-1.x branch is for Drupal 7 and is no longer developed.

Project information

Releases