AuthZEN API
AuthZEN policy decision point discovery, access evaluation, batch evaluation, and action search endpoints.
Download the OpenAPI definition (YAML)
Security schemes
DirectAuthSecret: API key in header "Direct-Auth-Secret"
Server-level secret required to call AuthZEN access endpoints.
AuthZEN
AuthZEN policy decision point and access evaluation APIs.
Get AuthZEN PDP metadata
GET /.well-known/authzen-configuration
Returns metadata for the AuthZEN policy decision point and the supported access API endpoints.
Responses
| Code | Description | Schema |
|---|---|---|
200 | AuthZEN metadata response. | AuthZENMetadataResponse |
Evaluate access
POST /access/v1/evaluation
Evaluates whether a subject can perform an action on a resource.
The resource type maps to a ThunderID resource server identifier. The action name
maps to a permission registered under that resource server. If the subject type is
omitted, subject type validation is skipped. Unknown resources and unregistered actions
are returned as denied decisions with an error context instead of transport errors.
A suspended subject is denied with the reason Subject is suspended, whatever its roles
allow. A locked subject is decided by its roles alone.
Request body (required): application/json
Schema: AccessEvaluationRequest
4 properties
Responses
| Code | Description | Schema |
|---|---|---|
200 | Access evaluation result. | AccessEvaluationResponse |
400 | Invalid AuthZEN request. | AuthZENErrorResponse |
401 | Missing or invalid Direct Auth Secret. | SecurityErrorResponse |
500 | AuthZEN server error. | AuthZENErrorResponse |
Evaluate access in batch
POST /access/v1/evaluations
Evaluates multiple access requests and preserves the request order in the response.
Item-level validation failures are returned as denied decisions with an explanatory
context where possible. An empty evaluations array returns a transport error.
Every evaluation for a suspended subject is denied; one that is otherwise valid gets the
reason Subject is suspended, while one with a missing field or an unknown resource keeps
that error context.
Request body (required): application/json
Schema: AccessEvaluationsRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
evaluations | array of AccessEvaluationRequest | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Batched access evaluation result. | AccessEvaluationsResponse |
400 | Invalid AuthZEN request. | AuthZENErrorResponse |
401 | Missing or invalid Direct Auth Secret. | SecurityErrorResponse |
500 | AuthZEN server error. | AuthZENErrorResponse |
Search allowed actions
POST /access/v1/search/action
Returns the actions that the subject is authorized to perform on the resource. A suspended subject has no allowed actions.
Request body (required): application/json
Schema: AccessActionSearchRequest
3 properties
Responses
| Code | Description | Schema |
|---|---|---|
200 | Allowed action search result. | AccessSearchResponse |
400 | Invalid AuthZEN request. | AuthZENErrorResponse |
401 | Missing or invalid Direct Auth Secret. | SecurityErrorResponse |
500 | AuthZEN server error. | AuthZENErrorResponse |
Schemas
AuthZENMetadataResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
policy_decision_point | string (uri) | Yes | Base URL of the policy decision point. |
access_evaluation_endpoint | string (uri) | Yes | Endpoint for single access evaluation. |
access_evaluations_endpoint | string (uri) | Endpoint for batch access evaluation. | |
search_action_endpoint | string (uri) | Endpoint for action search. |
Subject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Subject type. When omitted or blank, subject type validation is skipped. | |
id | string | Yes | Subject identifier. |
properties | object | Additional subject attributes. |
Resource
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | ThunderID resource server identifier. |
id | string | Resource identifier. | |
properties | object | Additional resource attributes. |
Action
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Permission name registered under the resource server. |
properties | object | Additional action attributes. |
AccessEvaluationRequest
Type: object
AccessEvaluationResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
decision | boolean | Yes | Whether the subject is authorized for the requested action. |
context | object | Decision context. Denied decisions may include a reason. |
AccessEvaluationsRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
evaluations | array of AccessEvaluationRequest | Yes |
AccessEvaluationsResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
evaluations | array of AccessEvaluationResponse | Yes |
AccessActionSearchRequest
Type: object
AuthZENErrorResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
error | string | Yes | Error message. Allowed values: |
SecurityErrorResponse
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. |
message | LocalizedMessage | Yes | |
description | LocalizedMessage | Yes |
LocalizedMessage
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Message key. |
defaultValue | string | Yes | Default message. |
Was this page helpful?