LinkedAuth.create - REST API

Overview

Creates a link between an SSO user with either Basic Auth or JWT security definition.

The Basic Auth or JWT definition's username must be the same as its name.

  • HTTP method: POST
  • URL path: /zato/sso/user/linked

Request

NameDatatypeOptionalNotes
uststring---Current user's session token (UST)
current_appstring---Name of application that the call is attempted from
user_idstring---ID of the user to link a definition to
auth_typestring---Type of the definition to link to the SSO user, must be 'basic_auth' or 'jwt'
auth_usernamestring---Username from the definition to be linked to the SSO user
is_activebool---Whether the link is active, i.e. can be used

Response

NameDatatypeOptionalNotes
cidstring---Correlation ID assigned to request
statusstring---Overall status code
sub_statuslistYesReturned only if status is not "ok", a list of error or warning codes

Usage

$ curl -XPOST localhost:17010/zato/sso/user/linked -d '
  {
    "current_ust": "gAAAAABavk-65BuvKI0JFPeuJ9Tp3pHtNM...",
    "current_app": "CRM",
    "user_id": "zusr6fh6fdgd4997ksjkpx7qnk659q",
    "auth_type": "basic_auth",
    "auth_username": "my.user",
    "is_active": true
  }
  '

  {
    "status": "ok",
    "cid": "01513a304ef4409ed2a6caf3"
  }