Request for Support on E-Signet API Configuration Issue

Dear Community,

We are an IT consulting company currently using the E-Signet API for one of our projects. Following the recent release two weeks ago, we encountered local configuration issues that resulted in an API URL error, without any specific logs returned from our UI.

The project is part of GovStack (the bb-esignature) and we are using the Mosip eSignet endpoints from this repo GitHub - mosip/esignet: Open ID based e-Signet service for large scale verification & authentication. from the release-1.5.x

Our project configuration is stuck at the authentication part as it returns the api error I mentioned in the previous email when we start up the e-signet ui microservice.

Would you be available for a call to help us set up the environment and troubleshoot the issue together?

Thank you for your support.

Hi @SOUFIANE_AMGHAR,

We request you to retest with this tag - GitHub - mosip/esignet at v1.5.0 instead of the ā€œrelease-1.5.xā€ branch.

Also sharing the screenshots and logs helps us to understand the issue better and help you faster.

regards,
MOSIP team

Hi @Anusha_sunkadh I just did the version change to v1.5.0 and the issue is still there:

Below are the screenshots post login with e-signet, and I got no specific logs from corresponding containers

Ok @SOUFIANE_AMGHAR

So what type of deployment is this?

  1. Docker compose
  2. Kubernetes based

Hello @Anusha_sunkadh itā€™s docker compose based

Great, So it means that you should have also imported postman collection based on the readme in the docker-compose folder.

[esignet/docker-compose/README.md at v1.5.0 Ā· mosip/esignet Ā· GitHub](https://How to bring up the complete eSignet setup for a Demo?)

From Step 5 in ā€œhow-to-bring-up-the-complete-esignet-setup-for-a-demoā€:

  1. 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 under OIDC Client Mgmt ā†’ Mock folder in postman.

Below placeholders should be replaced in the authorize URL

ā†’ client_id_value : value should be replaced with the value copied from Create OIDC client response.

ā†’ redirect_uri : As used in ODIC client create request.

  • Paste and Go to the updated Authorize URL in the browser.

@SOUFIANE_AMGHAR was the above steps followed?

1 Like

Hello thank you for the detailed steps
I have encountered a blocking issue caused from running the docker compose file provided in the 1.5.0 repository
Below the logs for both plugins and esignet:

{ā€œ@timestampā€:ā€œ2025-02-17T16:47:51.842Zā€,ā€œ@versionā€:ā€œ1ā€,ā€œmessageā€:ā€œsessionId - applicationId - OIDC_PARTNER - Getting Key CSR for application ID: OIDC_PARTNER, RefId: ā€œ,ā€œlogger_nameā€:ā€œio.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImplā€,ā€œthread_nameā€:ā€œmainā€,ā€œlevelā€:ā€œINFOā€,ā€œlevel_valueā€:20000,ā€œappNameā€:ā€œesignetā€}
{ā€@timestampā€:ā€œ2025-02-17T16:47:51.879Zā€,ā€œ@versionā€:ā€œ1ā€,ā€œmessageā€:ā€œ===================== IDP KEY SETUP COMPLETED ========================ā€,ā€œlogger_nameā€:ā€œio.mosip.esignet.config.AppConfigā€,ā€œthread_nameā€:ā€œmainā€,ā€œlevelā€:ā€œINFOā€,ā€œlevel_valueā€:20000,ā€œappNameā€:ā€œesignetā€}
Zip has a parent directory inside
Unzip directory
Archive: client.zip
creating: client/
inflating: client/README.md
extracting: client/ref.proxy
extracting: client/ref.softhsm
inflating: client/pkcs11.cfg
inflating: client/libpkcs11-proxy.so.0.1
inflating: client/install.sh
Renaming directory
mv: cannot move ā€˜clientā€™ to ā€˜hsm-client/clientā€™: Directory not empty
Zip has a parent directory inside
Unzip directory
Archive: client.zip
replace client/README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as ā€œ[N]oneā€ ā€¦)

d=, keyGenerationTime=2025-02-14T16:40:06.470776, keyExpiryTime=2028-02-14T16:40:06.470776, status=null, certThumbprint=FDEA6640392DCD46873F763EACA7039F9073B46D7B956CE25E9127F2F6E77E55, uniqueIdentifier=730499A7B9BC5C5BEFD1D0DC5A6C62CF53A072ED)ā€œ,ā€œlogger_nameā€:ā€œio.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImplā€,ā€œthread_nameā€:ā€œmainā€,ā€œlevelā€:ā€œINFOā€,ā€œlevel_valueā€:20000,ā€œappNameā€:ā€œmock-identity-systemā€}
{ā€@timestamp":ā€œ2025-02-17T16:47:50.697Zā€,ā€œ@versionā€:ā€œ1ā€,ā€œmessageā€:"sessionId - applicationId - MOCK_AUTHENTICATION_SERVICE - Getting Key CSR for application ID: MOCK_AUTHENTICATION_SERVICE, RefId: ",ā€œlogger_nameā€:ā€œio.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImplā€,ā€œthread_nameā€:ā€œmainā€,ā€œlevelā€:ā€œINFOā€,ā€œlevel_valueā€:20000,ā€œappNameā€:ā€œmock-identity-systemā€}
Zip has a parent directory inside
Unzip directory
Archive: client.zip
creating: client/
inflating: client/README.md
extracting: client/ref.proxy
extracting: client/ref.softhsm
inflating: client/pkcs11.cfg
inflating: client/libpkcs11-proxy.so.0.1
inflating: client/install.sh
Renaming directory
mv: cannot move ā€˜clientā€™ to ā€˜hsm-client/clientā€™: Directory not empty
Zip has a parent directory inside
Unzip directory
Archive: client.zip
replace client/README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as ā€œ[N]oneā€ ā€¦)

and for esignet-ui:

Pre-requisites download completed.
Replacing public url placeholder with public url
Replacing completed.
generating env-config file
generation of env-config file completed!
starting nginx
Downloading pre-requisites started.
unzip pluginsā€¦
./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip pluginsā€¦
./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip pluginsā€¦
./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip pluginsā€¦
./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory
Downloading pre-requisites started.
unzip pluginsā€¦
./configure_start.sh: line 49: cd: /usr/share/nginx/html/plugins/temp: No such file or directory

@Anusha_sunkadh It would be more efficient if you could assist me in a quick call whenever you are available, thanks

Hi @SOUFIANE_AMGHAR,

Yeah, this is a known problem with our docker-compose. As a workaround, we delete the containers and start fresh every time.

I followed the entire process you described and I still got this error when I sign in using eSignet

{
ā€œresponseTimeā€: ā€œ2025-02-19T11:12:03.620Zā€,
ā€œresponseā€: null,
ā€œerrorsā€: [
{
ā€œerrorCodeā€: ā€œinvalid_client_idā€,
ā€œerrorMessageā€: ā€œinvalid_client_idā€
}
]
}

@Anusha_sunkadh below is my development configuration in the interface side:

{
ā€œdevelopmentā€: {
ā€œBACKEND_URLā€: ā€œlocalhost:8002ā€,
ā€œAPI_URLā€: ā€œlocalhost:8002/api/v1ā€,
ā€œAUTHORIZE_URIā€: ā€œhttp://localhost:3000/authorizeā€,
ā€œCLIENT_IDā€: ā€œIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm96t+ā€,
ā€œREDIRECT_URIā€: ā€œlocalhost:7000/auth/callbackā€,
ā€œTOKEN_URLā€: ā€œlocalhost:8088/v1/esignet/oauth/v2/tokenā€,
ā€œUSERINFO_URLā€: ā€œlocalhost:8088/v1/esignet/oidc/userinfoā€,
ā€œESSENTIAL_CLAIMSā€: {
ā€œuserinfoā€: {
ā€œnameā€: {
ā€œessentialā€: true
},
ā€œphone_numberā€: {
ā€œessentialā€: false
},
ā€œemailā€: {
ā€œessentialā€: true
},
ā€œpictureā€: {
ā€œessentialā€: true
},
ā€œgenderā€: {
ā€œessentialā€: false
},
ā€œbirthdateā€: {
ā€œessentialā€: false
},
ā€œaddressā€: {
ā€œessentialā€: true
}
},
ā€œid_tokenā€: {}
},

Ok. If ā€œinvalid_client_idā€ is thrown when you invoke ā€œauthorize/oauth-detailsā€ endpoint then the client_id passed in the request body should be cross-checked.

Is it the same as the client ID created in the Create OIDC client response?

Yes it is the same client_id in the Create OIDC client response and yet I still get the error during the login

@Anusha_sunkadh I think itā€™s better if we can arrange a quick Google meet call to solve this ticket faster whenever you are available