# How to set up e-signet in development purpose

**URL:** <https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606>\
**Category:** eSignet\
**Created:** [July 22, 2023, 1:47pm UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606 "2023-07-22T13:47:54Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![montana.bae](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@montana.bae](https://community.mosip.io/u/montana.bae)\
**Post date:** [August 14, 2023, 12:48am UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/21 "2023-08-14T00:48:14Z")

</div>

Hello @Anusha_sunkadh,

I attached my request header and response heder below

And I’ll check the postman collection as you said

Thank you as always for kind and quick replies.

== Request header ===  
Accept:  
application/json, text/plain, _/_  
Accept-Encoding:  
gzip, deflate, br  
Accept-Language:  
ko,ko-KR;q=0.9,en-US;q=0.8,en;q=0.7  
Connection:  
keep-alive  
Content-Length:  
680  
Content-Type:  
application/json  
Host:  
localhost:8088  
Origin:  
[http://localhost:3000](http://localhost:3000)  
Referer:  
[http://localhost:3000/](http://localhost:3000/)  
Sec-Ch-Ua:  
“Not/A)Brand”;v=“99”, “Google Chrome”;v=“115”, “Chromium”;v=“115”  
Sec-Ch-Ua-Mobile:  
?0  
Sec-Ch-Ua-Platform:  
“Windows”  
Sec-Fetch-Dest:  
empty  
Sec-Fetch-Mode:  
cors  
Sec-Fetch-Site:  
same-site  
User-Agent:  
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36  
X-Xsrf-Token:  
8da4eae9-3246-4ed2-87b6-90f82ecd24ca

== Response Header ==  
Access-Control-Allow-Origin:  
\*  
Cache-Control:  
no-cache, no-store, max-age=0, must-revalidate  
Connection:  
keep-alive  
Content-Type:  
application/json  
Date:  
Mon, 14 Aug 2023 00:37:07 GMT  
Expires:  
0  
Keep-Alive:  
timeout=60  
Pragma:  
no-cache  
Set-Cookie:  
XSRF-TOKEN=75ab4af6-644d-42bf-ac30-864f79bc20c6; Path=/  
Transfer-Encoding:  
chunked  
Vary:  
Access-Control-Request-Headers  
Vary:  
Access-Control-Request-Method  
Vary:  
Origin  
X-Content-Type-Options:  
nosniff  
X-Frame-Options:  
DENY  
X-Xss-Protection:  
1; mode=block

---

<div class="post-metadata">

**Author:** ![montana.bae](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@montana.bae](https://community.mosip.io/u/montana.bae)\
**Post date:** [August 14, 2023, 9:08am UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/22 "2023-08-14T09:08:06Z")

</div>

Hello @Anusha_sunkadh ,

I tested some of postman collections and attached the results,

Only some get method APIs and mock identity related APIs seems work,

Please take a look and let me know what I missed.

Best regards,

* * *

# Get CSRF token API

result :  
{  
“token”: “4a2d832e-6b7f-42b2-a0de-562626ab64b7”,  
“parameterName”: “\_csrf”,  
“headerName”: “X-XSRF-TOKEN”  
}

# Get JWKS API

result :  
{  
“keys”: [  
{  
“kty”: “RSA”,  
“x5t#S256”: “QbxvJi\_9x6aC7i9RvkbJDmrtkK4pF-EG2GzidM60-lU”,  
“e”: “AQAB”,  
“use”: “sig”,  
“kid”: “YQjhzZV\_aWnVtPzYNGLglP1f4CbB1E3kJVn4e-QyJk8”,  
“x5c”: [  
:  
}  
]  
}

# Get Mock Identity API

result :  
{  
“responseTime”: “2023-08-14T08:54:05.394Z”,  
“response”: {  
“individualId”: “8267411571”,  
“pin”: “111111”,  
“fullName”: [  
{  
“language”: “eng”,  
“value”: “Siddharth K Mansour”  
}  
],  
:  
}

# Create Mock Identity

result :  
{  
“responseTime”: “2023-08-14T08:55:37.102Z”,  
“response”: {  
“status”: “mock identity data created successfully”  
},  
“errors”:   
}

# Generate Link code

result :  
{  
“responseTime”: “2023-08-14T08:56:35.269Z”,  
“response”: null,  
“errors”: [  
{  
“errorCode”: “invalid\_transaction\_id”,  
“errorMessage”: “request.transactionId: invalid\_transaction\_id”  
}  
]  
}

# Get Tokens

result :  
{  
“error”: “invalid\_auth\_code”,  
“error\_description”: “invalid\_auth\_code”  
}

# Authentication User

result :  
{“responseTime”:“2023-08-14T08:57:42.677Z”,“response”:null,“errors”:[{“errorCode”:“invalid\_transaction”,“errorMessage”:“invalid\_transaction”}]}

# Link auth code request

result :  
{  
“responseTime”: “2023-08-14T09:02:54.331Z”,  
“response”: null,  
“errors”: [  
{  
“errorCode”: “invalid\_transaction\_id”,  
“errorMessage”: “request.transactionId: invalid\_transaction\_id”  
}  
]  
}

---

<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:** [August 14, 2023, 12:34pm UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/23 "2023-08-14T12:34:33Z")

</div>

Hi @montana.bae

Order of execution in postman script for OIDC flow (OTP based auth) is:

- Get CSRF token API
- Create identity (Only 1 time)
- Create OIDC client (Only 1 time)
- Authorize / OAuthdetails request
- Send OTP
- Authenticate user
- Authorization Code
- Get Tokens
- Get Userinfo

---

<div class="post-metadata">

**Author:** ![montana.bae](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@montana.bae](https://community.mosip.io/u/montana.bae)\
**Post date:** [August 15, 2023, 3:01am UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/24 "2023-08-15T03:01:23Z")

</div>

Hi @Anusha_sunkadh

I followed the sequence above but still not working.

### Create OIDC Client

result :  
401 unauthorized error

- test function also failed  
Validate clientId | JSONError: No data, empty input at 1:1

### Authorize / OAuthdeails request

result :  
{  
“responseTime”: “2023-08-14T21:23:33.820Z”,  
“response”: null,  
“errors”: [  
{  
“errorCode”: “invalid\_client\_id”,  
“errorMessage”: “invalid\_client\_id”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![montana.bae](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@montana.bae](https://community.mosip.io/u/montana.bae)\
**Post date:** [August 16, 2023, 12:43am UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/25 "2023-08-16T00:43:32Z")

</div>

Hi @Anusha_sunkadh ,

Below image is my postman environment variables after executing “Create OIDC Client”,

Please take a look,

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/cc59ffe02c47871fa4353b00f0daa8b8711d5f69.png)

---

<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:** [October 17, 2023, 8:51am UTC](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606/26 "2023-10-17T08:51:06Z")

</div>

Hi @montana.bae ,

Sorry for the long delay. Can you please let us know if you are still facing the issue?

Based on the previous posts, it 401 error on “Create OIDC client”  
can you confirm on the below properties

> <https://github.com/mosip/esignet/blob/develop/esignet-service/src/main/resources/application-local.properties#L28-L40>

thanks & regards,  
Anusha

[Previous page](https://community.mosip.io/t/how-to-set-up-e-signet-in-development-purpose/606.md?page=1)
