Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
Previous page Next page
Authorization in Intellect using a token key provides the following capabilities:
To specify the token in the "token" parameter instead of specifying login and password;
To use the Bearer Token Authentication in the "Authorization" parameter in the request header. For example:
Authorization: Bearer PJ_eHSwUsqjXX7PRZMB8hm_zKEnCg3hE"
General format of request:
GET/POST http://{login}:{password}@IP-address:port/token?expires_in={expires_in}
Request parameters:
Parameter | Is required | Description |
|---|---|---|
| login | No | User login in Intellect, if specified |
| password | No | User password in Intellect, if specified |
| expires_in | No | Token validity time in seconds. The maximum value is 1 day. The token expires after a specified period of time. The default value is 1800. To log out, specify the value: "0" Note. There can be only 1 token for each user. |
Request example:
GET/POST http://USER:PASSWORD@127.0.0.1:8085/token?expires_in=1800Response example:
{
"access_token":"PJ_eHSwUsqjXX7PRZMB8hm_zKEnCg3hE"
"token_type":"bearer"
"expires_in":"1800"
}
Response parameters:
Parameter | Description |
|---|---|
| access_token | Token |
| token_type | Token type |
| expires_in | Token validity time in seconds |
Overview
Content Tools