Authorization Server for Authentication Using Inji Wallet Credentials
Overview
Example Use Case
User Journey
APIs Involved
Link Login Transaction
Body
requestTimestringRequired
Responses
200
OK
application/json
responseTimestringOptional
post/linked-authorization/v2/link-transaction
POST /v1/esignet/linked-authorization/v2/link-transaction HTTP/1.1
Host: esignet.collab.mosip.net
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"requestTime": "2023-09-22T08:01:10.000Z",
"request": {
"linkCode": "xl4cnYtLQkGRxUj"
}
}200
OK
{
"responseTime": "2023-09-22T08:01:13.000Z",
"response": {
"linkTransactionId": "qwert_yt46_hX0xlBJNExl9cnYtL8kGvcbf555",
"clientName": {
"eng": "Fastlane e-Sim Service",
"fra": "Service e-Sim de Fastlane",
"ara": "خدمة فاست لين e-SIM"
},
"logoUrl": "https://fastlane.com/logo.png",
"authFactors": [
[
{
"type": "OTP",
"count": 0,
"subTypes": null
}
]
],
"authorizeScopes": [],
"credentialScopes": [],
"essentialClaims": [
"name",
"address"
],
"voluntaryClaims": [
"email",
"phone_number"
],
"configs": {
"sbi.env": "Staging",
"sbi.threshold.face": 40,
"sbi.threshold.finger": 40,
"sbi.threshold.iris": 40
}
},
"errors": null
}Authenticate User
Body
requestTimestringRequiredPattern:
yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Responses
200
OK
application/json
responseTimestringOptional
post/linked-authorization/v2/authenticate
POST /v1/esignet/linked-authorization/v2/authenticate HTTP/1.1
Host: esignet.collab.mosip.net
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"requestTime": "2023-09-22T08:01:10.000Z",
"request": {
"linkedTransactionId": "qwert_yt46_hX0xlBJNExl9cnYtL8kGvcbf555",
"individualId": "34543276756",
"challengeList": [
{
"authFactorType": "OTP",
"challenge": "111111",
"format": "alpha-numeric"
}
]
}
}200
OK
{
"responseTime": "2023-09-22T08:01:13.000Z",
"response": {
"linkedTransactionId": "qwert_yt46_hX0xlBJNExl9cnYtL8kGvcbf555",
"consentAction": "CAPTURE"
},
"errors": []
}Submit User Consent
Body
requestTimestringRequiredPattern:
yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Responses
200
OK
application/json
responseTimestringOptional
post/linked-authorization/v2/consent
POST /v1/esignet/linked-authorization/v2/consent HTTP/1.1
Host: esignet.collab.mosip.net
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"requestTime": "2023-09-22T08:01:13.000Z",
"request": {
"linkedTransactionId": "qwert_yt46_hX0xlBJNExl9cnYtL8kGvcbf555",
"permittedAuthorizeScopes": [],
"acceptedClaims": [
"name",
"email",
"phone_number",
"address"
],
"signature": "<detached signature>"
}
}200
OK
{
"responseTime": "2023-09-22T08:01:14.000Z",
"response": {
"linkedTransactionId": "qwert_yt46_hX0xlBJNExl9cnYtL8kGvcbf555"
},
"errors": []
}Benefits
Reference
Last updated
Was this helpful?