Skip to content

login

Request

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

Path
tenant_tagstringrequired

Tenant Tag

Bodyapplication/jsonrequired

Login request params

meta_dataobject
passwordstringrequired
usernamestringrequired
curl -i -X POST \
  'https://ledger.docs.insly.com/api/v1/identifier/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)
challenge_namestring
challenge_parametersobject(contract.ChallengeResultParameters)
dataobject
Response
{ "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" } }