Authenticate
Authenticate with user and password/token.
Parameters
Details
The response will provide a session token, that must be used in the header of the messages for queries. When using client libraries, the token is handled automatically.
Examples
Authenticate to the db with user and password:
[ {
"Authenticate" : {
"username": "john",
"password": "somepassword"
}
} ]
# Response:
[ {
"Authenticate" : {
"status": 0,
"session_token": "adbs_Z2nOUCAE37tlfcPUdeNGE5wtMRZvFYUn6iv",
"session_token_expires_in": "28800",
"refresh_token": "adbr_TxchBKOyerwLEbNnnhuoxtzSuC8ag0u9j5O",
"refresh_token_expires_in": "15811200"
}
} ]
Authenticate to the db with user and token:
[ {
"Authenticate" : {
"username": "john",
"token": "adbp_jZ1QTOfDs0RrvzMzd5vSsLEcRintc14zlN9"
}
} ]
# Response:
[ {
"Authenticate" : {
"status": 0,
"session_token": "adbs_Z2nOUCAE37tlfcPUdeNGE5wtMRZvFYUn6iv",
"session_token_expires_in": "28800",
"refresh_token": "adbr_TxchBKOyerwLEbNnnhuoxtzSuC8ag0u9j5O",
"refresh_token_expires_in": "15811200"
}
} ]