Session.get - REST API

Overview

Returns details of a session indicated by target_ust, without renewing it. Must be called by a logged in super-user.

  • HTTP method: GET
  • URL path: /zato/sso/user/session

Request

NameDatatypeOptionalNotes
target_uststring---UST of session to return details of
current_uststring---Current user's session token (UST) - must belong to a super-user
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
creation_timedatetimeYesWhen the session was created, in UTC
expiration_timedatetimeYesWhen the session will expire, in UTC
remote_addrstringYesFrom what remote address the session was created
user_agentstringYesUsing what user agent the session was created

Usage

$ curl -XGET localhost:17010/zato/sso/user/session -d '
  {
    "target_ust": "gAAAAABaqXJAenbkYyQt9CoWIvq...",
    "current_ust": "gAAAAABanYJQziYsPwDYOFJSR5...",
    "current_app": "CRM"
  }
  '

{
  "cid": "e0673f65704f74b2cd040fa6",
  "status": "ok",
  "creation_time": "2028-03-14T19:04:32",
  "expiration_time": "2028-03-14T20:04:32",
  "remote_addr": "127.0.0.1",
  "user_agent": "Firefox 139.0"
}
$