# eSignet component system

**URL:** <https://community.mosip.io/t/esignet-component-system/1554>\
**Category:** Support\
**Tags:** esignet\
**Created:** [September 13, 2024, 10:23am UTC](https://community.mosip.io/t/esignet-component-system/1554 "2024-09-13T10:23:32Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 13, 2024, 10:23am UTC](https://community.mosip.io/t/esignet-component-system/1554/1 "2024-09-13T10:23:32Z")

</div>

Hi Team,

I cloned eSignet backend service source code from the github as per the documentation and mockIdentitySystemApplication source code as well. Tried to run that application in local but facing the bean creation issue.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![svahsek](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/svahsek/32/1098_2.png) [@svahsek](https://community.mosip.io/u/svahsek)\
**Post date:** [September 16, 2024, 5:18am UTC](https://community.mosip.io/t/esignet-component-system/1554/2 "2024-09-16T05:18:12Z")

</div>

Dear @narayana_prakash,

Thank you for reaching out, Let’s look into your query and ask one of our experts to respond to it here.

Best Regards  
Team MOSIP

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 16, 2024, 6:12am UTC](https://community.mosip.io/t/esignet-component-system/1554/3 "2024-09-16T06:12:31Z")

</div>

Dear @svahsek

Thanks for your response. Please share the documentation to set up the esignet in local.

---

<div class="post-metadata">

**Author:** ![kaifk468](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/kaifk468/32/1052_2.png) [@kaifk468](https://community.mosip.io/u/kaifk468)\
**Post date:** [September 17, 2024, 9:19am UTC](https://community.mosip.io/t/esignet-component-system/1554/4 "2024-09-17T09:19:01Z")

</div>

Hi @svahsek

Here is the steps u need to follow to setup esignet into your local  
========Esignet-setup=============  
The project requires JDK 11.

First You need to build the Esignet with this commant. Make sure you have both jkd-11 and maven set up in enviroment path

1-\> mvn clean install -Dgpg.skip=true

after the build get succes you have to configure the postgress database from application-local-properties file

spring.datasource.url=jdbc:postgresql://localhost:5432/mosip\_esignet  
spring.datasource.username=postgres  
spring.datasource.password=postgres

Configure this properties base on your postgres credentials i.e portNo, username and password

==========DataBase SetUp==========================

1. Create database ‘mosip\_esignet’.

2. Run all the scripts provided under db\_scripts/mosip\_esignet/ddl folder.

3. Run the below insert statements in mosip\_esignet database:

---

<div class="post-metadata">

**Author:** ![kaifk468](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/kaifk468/32/1052_2.png) [@kaifk468](https://community.mosip.io/u/kaifk468)\
**Post date:** [September 17, 2024, 9:22am UTC](https://community.mosip.io/t/esignet-component-system/1554/5 "2024-09-17T09:22:42Z")

</div>

Please follow this step and let me know if found any issue

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 17, 2024, 9:32am UTC](https://community.mosip.io/t/esignet-component-system/1554/6 "2024-09-17T09:32:04Z")

</div>

@kaifk468 Thanks for your response.

eSignet backend service which is running in locally with mock identity. While creating the identity using mock identity api in postman ,Facing the below error .Please assist me on that

**Api** → [http://localhost:8082/v1/mock-identity-system/identity](http://localhost:8082/v1/mock-identity-system/identity)

**Pre request script** → eval(pm.globals.get(‘pmlib\_code’))

// Set headers for JWT  
var header = {   
“alg”: “RS256”  
};

//sign token  
const private\_key\_jwk = {  
“p”: “0-40ISxXDmC8SVrudg1e7vQskyWlohadm83RAkUyH6S4h1aTPrNwLVn9WANnyRTqupD1Fr8mYZ7f9nZ2MkMj45UV8uiIjQZr3crMq0YGkzt\_LvwhLduWOJ\_z9\_9zZNHckXei4G8QQFJQYb3TNdGsVVSwff68SSoen8oqvkbkAJs”,  
“kty”: “RSA”,  
“q”: “6as88odcbP2MDT9lkahK2z4QIH25zsa\_UdLgAtLwDVpekXfJNOQvuqNY1Gw3Jws6uPDLGcEK42MyeOdCFqklFTvDJlJXMFvgWrmGbCUMvJL-rFyO-kCTGnFBX60ozdJbjfBt3E3QYx3G907Ziuu9o0azey1DJtq\_zKwearE-xTs”,  
“d”: “BgdeiCZbr5qZ4haShg9uQinZRYPSUTYc\_58YgvQ0WkPKm5fINOgOJPvimdKYBt8OtIWbhojTyn0TKrGPPAqFZCnGY16HkCUN31MbluD2wxYz6SPpZ1zsmP8PbQUVozjEFeLpiTN6nubw\_skS\_9GGrl1CPb25wTPlZtI3uQ5IiPL\_YD5j\_w5\_J7tejAaRbhlJj48ZDa4CR8BkaUi2QaQmLoyiO\_1O-U-Nf17-t1C6zFFKKHQx2lNltE1xFQoHB4WuBA2GnP5LgNFJSLv0p95gQK37nP0TTcuiZVlvFcmbGI\_ilWlxRKJUD3mZR6nz25X4SapUWswnrnm7JtUA\_UGVGw”,  
“e”: “AQAB”,  
“use”: “sig”,  
“kid”: “1bbdc9de-c24f-4801-b6b3-691ac07641af”,  
“qi”: “pmL\_G7T4OF\_pr2RCzkkupi1dCbwRX39bMEIs3uirvkoPR5CENvuvsXQ0Oias3taxzLa4nG5JVXHkyOIX8UsK1NFrzZPRKbfNX3h5EAnl3I7cZMtoYJLnawUqaNTukOmDChPlKx1fVjUwsyNn5HSAnmBiaOmm\_RHo36tPhgaPUtE”,  
“dp”: “e3b2X60ZOoMYrhOPgK7hc4xEu6TfDcLnJvGMpinxvYWVCyNgvNKEs6cNdMznFbpd1TrFze6mSZDpIQh6a2W57sfX9Z-Kjb4D8T5IZi9xfSzYN2MjYTfgGDT3SK9FZqLsQMLV3LJXYWGS-p5AAcaZA01HVN-miWlEVgrNQ\_TAt6k”,  
“dq”: “Yg-BqUoTCI4y6xBS4JieqXlXLTt18YfInF8BsU2yffgRvbxmTPMB8LJCQgsT7iexQhGTOkCgACMN-F0ciAP90vZchEWD34B\_G7PF7LZzrOOHSvAg9HaLBUrII424lP-VenCOuihRrna9m-WUN8-MquutwKCTEMg2O39z2FR\_wic”,  
“n”: “wXGQA574CU-WTWPILd4S3\_1sJf0Yof0kwMeNctXc1thQo70Ljfn9f4igpRe7f8qNs\_W6dLuLWemFhGJBQBQ7vvickECKNJfo\_EzSD\_yyPCg7k\_AGbTWTkuoObHrpilwJGyKVSkOIujH\_FqHIVkwkVXjWc25Lsb8Gq4nAHNQEqqgaYPLEi5evCR6S0FzcXTPuRh9zH-cM0Onjv4orrfYpEr61HcRp5MXL55b7yBoIYlXD8NfalcgdrWzp4VZHvQ8yT9G5eaf27XUn6ZBeBf7VnELcKFTyw1pK2wqoOxRBc8Y1wO6rEy8PlCU6wD-mbIzcjG1wUfnbgvJOM4A5G41quQ”  
}

const signed\_jwt = pmlib.clientAssertPrivateKey(private\_key\_jwk, pm.environment.get(‘clientId’), pm.environment.get(‘aud’), exp = 60, “RS256”);

pm.collectionVariables.set(“client\_assertion”,signed\_jwt);

**Error** : **There was an error in evaluating the Pre-request Script:ReferenceError: pmlib is not defined**

---

<div class="post-metadata">

**Author:** ![kaifk468](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/kaifk468/32/1052_2.png) [@kaifk468](https://community.mosip.io/u/kaifk468)\
**Post date:** [September 17, 2024, 10:32am UTC](https://community.mosip.io/t/esignet-component-system/1554/7 "2024-09-17T10:32:52Z")

</div>

There were some parsing library missing in your postman  
Downloard this collection : [postman-util-lib/postman/PostmanUtilityLibv2.postman\_collection.json at master · joolfe/postman-util-lib · GitHub](https://github.com/joolfe/postman-util-lib/blob/master/postman/PostmanUtilityLibv2.postman_collection.json)

and execute both the request api i.e lib install and lib use example

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 17, 2024, 11:14am UTC](https://community.mosip.io/t/esignet-component-system/1554/8 "2024-09-17T11:14:53Z")

</div>

Thanks @kaifk468. Now it’s working.

---

<div class="post-metadata">

**Author:** ![kaifk468](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/kaifk468/32/1052_2.png) [@kaifk468](https://community.mosip.io/u/kaifk468)\
**Post date:** [September 17, 2024, 11:36am UTC](https://community.mosip.io/t/esignet-component-system/1554/9 "2024-09-17T11:36:19Z")

</div>

Feel free to let us know if you find any issue further  
Thanks

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 17, 2024, 11:52am UTC](https://community.mosip.io/t/esignet-component-system/1554/10 "2024-09-17T11:52:15Z")

</div>

@kaifk468 I have run and done the mock Api check using **e-Signet Collection Mock IDA** collection.  
Here how can we test the real data using this **e-Signet Collection MOSIP IDA** collection?  
If we hit the **authorization/send-otp** api ,That response comes in JSON file from eSignet service.  
**Response** → {  
“responseTime”: “2024-09-17T10:29:28.830Z”,  
“response”: {  
“transactionId”: “XVnPozkI8UuLxFBxKSSESHrwIUtezMFW4mCi1CugdtQ”,  
“maskedEmail”: “[XXdXXaXXhXXkX@gmail.com](mailto:XXdXXaXXhXXkX@gmail.com)”,  
“maskedMobile”: “XXXXXXX357934”  
},  
“errors”:   
}

How will work in real time?

---

<div class="post-metadata">

**Author:** ![Anusha\_sunkadh](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/anusha_sunkadh/32/30_2.png) [@Anusha\_sunkadh](https://community.mosip.io/u/Anusha_sunkadh)\
**Post date:** [September 17, 2024, 6:04pm UTC](https://community.mosip.io/t/esignet-component-system/1554/11 "2024-09-17T18:04:59Z")

</div>

Hi @narayana_prakash

check this [section](https://docs.esignet.io/try-it-out) for more details.

Thanks  
MOSIP team

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 18, 2024, 4:50am UTC](https://community.mosip.io/t/esignet-component-system/1554/12 "2024-09-18T04:50:55Z")

</div>

Okay @Anusha_sunkadh.

Thanks  
Narayana Prakash.k

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 19, 2024, 8:48am UTC](https://community.mosip.io/t/esignet-component-system/1554/13 "2024-09-19T08:48:47Z")

</div>

Hi @kaifk468 How to run the Inji backend service code in local. Please the documentation, required files and which tag used to clone from github .

Thanks,  
Narayana prakash.k

---

<div class="post-metadata">

**Author:** ![svahsek](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/svahsek/32/1098_2.png) [@svahsek](https://community.mosip.io/u/svahsek)\
**Post date:** [September 20, 2024, 6:18am UTC](https://community.mosip.io/t/esignet-component-system/1554/14 "2024-09-20T06:18:17Z")

</div>

Dear @narayana_prakash ,

Please create another post for the Inji query.

Best Regards  
Team MOSIP

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 20, 2024, 6:21am UTC](https://community.mosip.io/t/esignet-component-system/1554/15 "2024-09-20T06:21:09Z")

</div>

Okay @svahsek

Thanks  
Narayana Prakash.k
