Skip to content

Auth:AuthOwner

Authenticates with the server, providing full identity including user name and password.

This is primarily for internal and specialised clients. Typical API users should use the OAuth flow documented in the Authentication section of this document.

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

NameTypeDescription
ProviderStringRequired. The authentication Provider to login with
ClientIDStringRequired. The identifier of the Client software
ClientSecretStringOptional. The password for this Client software, if any. Used for secure clients.
UserNameStringOptional. The identifier of the user using the software. May be omitted if using Client Credentials
PasswordStringOptional. The password for the identified user. May be omitted if using Client Credentials.
ScopeArrayOptional. An array of strings identifying the desired security level.If omitted, uses the maximum scope for the user. See Appendix A: Access Rights for more information.
NameTypeDescription
ResultStringAlways. Result code. One of the following:Success – Authentication acceptedReject – Authentication rejected.
AccessTokenStringSometimes. If successful and permitted for the user, provides the Base-64-encoded access token that can be saved and given to AuthToken to restore this connection in the future
DisplayNameStringSometimes. If successful and available, provides a friendly name for the authenticated user
UserIDStringSometimes. If successful, provides an internal name for the authenticated user
ExpiryDateDateTimeSometimes. If successful and this authentication will expire, provides the date and time when this will occur
ScopeArraySometimes. If successful, provides an array of strings describing the accepted security scopes

See Data Types for DateTime formatting.

websocket.send(JSON.stringify(
{
Controller:"Auth",
Topic:"AuthOwner",
TransactionID:1,
Data:
{
Provider: "Paritech",
ClientID: "TriOptimum",
UserName: "Shodan",
Password: "Insect",
Scope: ["Paritech.Zenith"]
}
}));

Sample Response:

{
"Controller":"Auth",
"Topic":"Identify",
"TransactionID":1,
"Data":
{
"Result":"Reject"
}
}