How to set up e-signet in development purpose

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
Referer:
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

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”
}
]
}

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
1 Like

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”
}
]
}

Hi @Anusha_sunkadh ,

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

Please take a look,

1 Like

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

thanks & regards,
Anusha

1 Like