Digilocker Meripehchaan SSO
This document will illustrate on how digilocker meripehchaan can be configured.
Assumptions
To get the Digilocker Meripehchaan SSO login button in the login page, you would need to use the keycloak theme instead of the custom theme provided by default.
Pre-requisites
Keycloak
Digilocker partner account (https://partners.digitallocker.gov.in/)
Generate client secrets in (https://apisetu.gov.in/org/consumer/auth_partners)
Set the redirect url to
<domain>/auth/realms/master/broker/oidc/endpoint
Steps to integrate Digilocker Meripehchaan SSO in keycloak
Goto keycloak admin page
<domain>/auth/Login with admin credentials
Goto
Identity ProvidersClick on
Add providerSelect
OpenID Connect v1.0Enter the display name to be showed on the login page, Ex:
Login with Digilocker MeripehchaanSet the Authorization URL to `https://digilocker.meripehchaan.gov.in/public/oauth2/1/authorize`
Set the Token URL to `https://digilocker.meripehchaan.gov.in/public/oauth2/2/token`
Turn on
Disable User InfobuttonSelect
Client secret sent as postfromClient Authentication`optionsSet
Client Idthat was generated in Digilocker partner portalSet
Client Secretthat was generated in Digilocker partner portalSelect
consentfromPromptoptionsEnable
Use PKCEoptionSelect
S256fromPKCE Methodoptions
Enable default keycloak theme
Goto keycloak admin page
<domain>/auth/Login with admin credentials
Goto
clients -> registry-frontendSelect
keycloakfromLogin ThemeoptionsSave the changes
Last updated