Skip to content

Identifier Service (1.0)

Authentication service for Insly

Download OpenAPI description
Languages
Servers
Mock server

https://ledger.docs.insly.com/_mock/apis/identifier/swagger/

https://ledger.docs.insly.com/api/v1/identifier/

Operations

Request

Authenticates user and returns tokens or challenge in case of success.

Path
tenant_tagstringrequired

Tenant Tag

Bodyapplication/jsonrequired

Login request params

meta_dataobject
meta_data.​property name*stringadditional property
passwordstringrequired
usernamestringrequired
curl -i -X POST \
  'https://ledger.docs.insly.com/_mock/apis/identifier/swagger/login/{tenant_tag}' \
  -H 'Content-Type: application/json' \
  -d '{
    "meta_data": {
      "property1": "string",
      "property2": "string"
    },
    "password": "string",
    "username": "string"
  }'

Responses

OK

Bodyapplication/json
authentication_resultobject(contract.AuthenticationResultType)
authentication_result.​access_tokenstring
authentication_result.​expires_ininteger
authentication_result.​id_tokenstring
authentication_result.​refresh_tokenstring
authentication_result.​token_typestring
challenge_namestring
challenge_parametersobject(contract.ChallengeResultParameters)
challenge_parameters.​qr_codestring
challenge_parameters.​required_attributesArray of strings
challenge_parameters.​secret_codestring
challenge_parameters.​user_attributesobject
challenge_parameters.​user_attributes.​property name*stringadditional property
challenge_parameters.​user_id_for_srpstring
dataobject
data.​property name*stringadditional property
Response
application/json
{ "authentication_result": { "access_token": "string", "expires_in": 0, "id_token": "string", "refresh_token": "string", "token_type": "string" }, "challenge_name": "string", "challenge_parameters": { "qr_code": "string", "required_attributes": [ … ], "secret_code": "string", "user_attributes": { … }, "user_id_for_srp": "string" }, "data": { "property1": "string", "property2": "string" } }

Request

Generate an access token for app client

Path
tenant_tagstringrequired

Tenant Tag

Bodyapplication/jsonrequired

ClientToken request params

client_idstringrequired
client_secretstringrequired
scopestring
curl -i -X POST \
  'https://ledger.docs.insly.com/_mock/apis/identifier/swagger/token/client/{tenant_tag}' \
  -H 'Content-Type: application/json' \
  -d '{
    "client_id": "string",
    "client_secret": "string",
    "scope": "string"
  }'

Responses

OK

Bodyapplication/json
access_tokenstring
expires_ininteger
token_typestring
Response
application/json
{ "access_token": "string", "expires_in": 0, "token_type": "string" }
Operations