Create ACL endpoint for Sonador auth request validation
Provide an endpoint that is able to assess whether a user has access to an endpoint.
- Should accept a POST request
- Should return a list of permissions which describe what aspects of the resource the user has access to.
- Sonador will evaluate the list of permissions and the resource requested to determine if the user should be granted access. The implementation of which URLs/resources are controlled by which permissions is a part of the
orthancapi.auth
module of the Sonador web application.
Sample request:
{
"user": 2,
"orthanc_id": "{ resource-id }",
"level": "{patient,study,series}",
"groups": [6,7,8]
}
Sample response: authorized
{
"authorized": true,
"valid": 10,
}
Sample response: denied
{
"authorized": false,
"valid": 0
}