Signin
Signin the user authenticated with the access token
info
This operation requires authentication.
HTTP Request
POST /api/v2/sso/signin/
Example Request
- JavaScript
- Bash
- Python
const inputBody = '{}';
const headers = {
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/sso/signin/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
import requests
headers = {
'Authorization': 'Bearer {access_token}'
}
r = requests.post('/api/v2/sso/signin/', headers = headers)
print(r.json())
# You can also use wget
curl -X POST /api/v2/sso/signin/ \
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» id | integer | true | none | A unique internal id identifying the authenticated user |
» ext_id | integer¦null | true | none | A unique external id identifying the authenticated user |
» username | string | true | none | Username of the authenticated user |
» role | string¦null | false | none | Role of the user; it can be: admin, moderator, editor |
» tags | list(integer)¦null | false | none | List of tag ids |
Example responses
- 200
{
"id": "integer",
"ext_id": "integer",
"username": "string",
"role": "string",
"tags": ["integer"]
}