This is the docker compose setup to run esignet UI and esignet-service with mock identity system. This is not for production use.
- Open terminal and go to "docker-compose" folder.
- Run
docker compose --file dependent-docker-compose.yml up
to start all the dependent services. - Go to esignet-with-plugins folder and run
mvn clean install -Dgpg.skip=true
from the command line. - Add esignet-mock-plugin.jar to esignet-service classpath in your IDE.
- Start the EsignetServiceApplication.java from your IDE.
- Import files under postman-collection folder into your postman to test/validate OIDC flow.
-
Open terminal and go to "docker-compose" folder.
-
Run
docker compose --file docker-compose.yml up
to start eSignet UI and backend service. -
Access eSignet UI at http://localhost:3000
-
Access eSignet backend services at http://localhost:8088/v1/esignet/swagger-ui.html
-
Onboard relying party in eSignet, import all files under postman-collection folder into your postman. Choose
eSignet-with-mock
environment in the postman and invoke below requests underOIDC Client Mgmt
->Mock
folder in postman.a.
Get CSRF token
b.
Create OIDC client
-> Make sure to update redirect Urls and logo URL as per your requirement in the request body. -
Copy the client ID in the
Create OIDC client
response. -
Add a
SignIn with eSignet
button in the relying party website and embed eSignet authorize URL in the button. Update the below query parameter in the eSignet authorize URL before embedding in the button.a.
client_id
-> value should be replace with the value copied in the step 6b.
redirect_uri
-> As updated in step 5 -
Add a user in the mock-identity-system. Invoke
Creat User
request underUser Mgmt
->Mock
folder in the postman. -
Now the setup is completely ready to start the OIDC flow. Refer eSignet user guides for more information.
Note: To know more about the relying party onboard and query parameters used in the eSignet authorize URL
refer eSignet docs
- Import files under postman-collection folder into your postman. And invoke requests under
User Mgmt/Mock
folder in postman.