Workspaces API
V2 License Access
Verify the user and token has access to the requested resources.
Given a user token, verify that the user has access to the requested service, org and hub, as well as that the token as the required scope.
On success, returns details of the calling user, what they are entitled to, and the authorization the request was made with.
Args: org_id (UUID): UUID of the Evo organisation service (str): service name (i.e. "blockmodel") hub (str): the hub code required_scope(str): scope required for the service Returns: A JSON response.
Request
Responses
200
Successful Response
Auth details,retrieved from token, for v2 License Access Response
Entitlement details for v2 License Access Response
User details for v2 License Access Response
{
"auth_details": {
"client_id": "string",
"exp": 0,
"iat": 0,
"iss": "string",
"jti": "string",
"scope": [
"string"
],
"sid": "string",
"type": "string",
"ver": "string"
},
"entitlements": {
"hub_code": "string",
"instance_id": "string",
"instance_name": "string",
"org_id": "string",
"org_name": "string",
"roles": [
"string"
],
"services": [
"string"
]
},
"user": {
"org_id": "string",
"org_name": "string",
"sub": "string"
}
}
401
No permission -- see authorization schemes
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}
403
Request forbidden -- authorization will not help
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}
404
Resource not found or user lacks access
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}
405
Specified method is invalid for this resource
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}
422
Unprocessable Content
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}