Retrieval for Users Across Multiple Databases
This page serves as a guide on how to retrieve multiple authentication tokens for users who are part of client groups.
Guide
Create a POST request with email
, password
and targetClientId
included in the JSON body and send request to the authentication API.
Value | |
---|---|
HTTP Method | POST |
Path | /api/auth/password/token |
Parameters | email: user account email address password: user account password targetClientId: relevant database Id to be retrieved |
Note: If a user who is not a client group administrator attempts to obtain a bearer token with the "targetClientId" attribute and its value is not 0, the API will reject the request and respond with HTTP status 401 Unauthorized.
JSON body example:
{
"email": "info@company.com",
"password": "****",
"targetClientId": 1
}
Example
cURL
curl -X POST <https://accounts-quantium.azurewebsites.net/api/auth/password/token>
-H "Content-Type: application/json"
-d "{'email':'[info@company.com](mailto:info@company.com)','password':'**\*\*\*\***','targetClientId':1}"
Response
{
"subject": "info@company.com",
"token": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjZGNEU1ODhBQTQ2ODc1RDI5M0E2QkExOTg4RTc0OTVGIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2MjIzODY2NDAsImV4cCI6MTYyMjM5MDI0MCwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50cy1xdWF",
"expired_UTC": "2021-05-30T15:57:20.273133Z"
}
Retrieving targetClientId values
-
Click on the "User" icon in the top right corner of the application.
-
Click on the "Group administrator portal" tab.
-
Id value can be found in the fund manager column next to the corresponding database name.
Updated 11 months ago