Capability Token Info - OsiriX-Foundation/KheopsAuthorization GitHub Wiki
This resource can be used just with a capability token (no more authorization needed)
URL : /capabilities/{capability_id}
Method : GET
Auth Required : Authorization with a JWT Bearer token with the user as the sub claim.
Headers
Accept
: If present, require that this value beapplication/json
Success Response
If the token was found.
- Status :
200 Ok
{
"issued_at_time": "2019-02-11T16:19:16.687Z",
"not_before_time": "2018-10-22T14:20:59.734Z",
"last_use": "2018-11-12T13:23:46.156Z",
"expiration_time": "2019-01-22T14:20:59.734Z",
"revoked": false,
"scope_type": "album",
"scope_album": "qs78F5Cd2X"
"read_permission": true,
"write_permission": false,
"download_permission": true,
"appropriate_permission": false,
or
"scope_type": "user"
}
Error Response
If the token are unknow
- Status :
404 Not Found