SessionAttr.names - REST API

Overview

Returns a list of all attribute names defined for a session.

  • HTTP method: GET
  • URL path: /zato/sso/session/attr/names

Request

NameDatatypeOptionalNotes
current_uststring---Current user's session token (UST)
target_uststring---Target session's UST, the one that is being accessed (may be the same as current_ust)
current_appstring---Name of application that the call is attempted from

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
resultlist---Names of all attributes, if any, defined for a session

Usage

$ curl -XGET localhost:17010/zato/sso/session/attr/names -d '
  {
    "current_ust": "gAAAAABavmAV3rw6fQUS-Hg...",
    "target_ust": "gAAAAABavk-65BuvKI0JFPeu...",
    "current_app": "CRM"
  }
  '

  {
    "status": "ok",
    "cid": "22fdd109d125f302d3c862db",
    "result": ["my-attribute", "my-attribute2", "my-attribute3"]
  }