Skip to content

QueryIdentify

Retrieves the current authenticated user information for the connection.

Controller: Auth
Topic: QueryIdentify
Action: Publish
Permissions: None

No Request Body

NameTypeExpectDescription
ResultStringAlwaysResult code. One of the following:
Success: Authentication accepted
Reject: Authentication rejected.
AccessTokenStringOptionalIf successful and permitted for the user, provides the access token that can be saved and given to AuthToken to restore this connection in the future
DisplayNameStringOptionalIf successful and available, provides a friendly name for the authenticated user
UserIDStringOptionalIf successful, provides an internal name for the authenticated user
ExpiryDateDateTimeOptionalIf successful and this authentication will expire, provides the date and time when this will occur
ScopeArrayOptionalIf successful, provides an array of strings describing the accepted access rights. See Appendix A - Acceess Rights
websocket.send(JSON.stringify(
{
Controller:"Auth",
Topic:"QueryIdentify",
TransactionID:1
}));

Sample Response:

{
"Controller":"Auth",
"Topic":"QueryIdentify",
"TransactionID":1,
"Data":
{
"Result":"Success",
"Scope":["Paritech.Zenith.Market", "Paritech.Zenith.Trading"]
}
}