Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

AuthZEN API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

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

CodeDescriptionSchema
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
NameTypeRequiredDescription
subjectSubjectYes
resourceResourceYes
actionActionYes
contextobject

Request context for the evaluation.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
evaluationsarray of AccessEvaluationRequestYes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
subjectSubjectYes
resourceResourceYes
contextobject

Request context for the action search.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
policy_decision_pointstring (uri)Yes

Base URL of the policy decision point.

access_evaluation_endpointstring (uri)Yes

Endpoint for single access evaluation.

access_evaluations_endpointstring (uri)

Endpoint for batch access evaluation.

search_action_endpointstring (uri)

Endpoint for action search.

Subject​

Type: object

3 properties
NameTypeRequiredDescription
typestring

Subject type. When omitted or blank, subject type validation is skipped.

idstringYes

Subject identifier.

propertiesobject

Additional subject attributes.

Resource​

Type: object

3 properties
NameTypeRequiredDescription
typestringYes

ThunderID resource server identifier.

idstring

Resource identifier.

propertiesobject

Additional resource attributes.

Action​

Type: object

2 properties
NameTypeRequiredDescription
namestringYes

Permission name registered under the resource server.

propertiesobject

Additional action attributes.

AccessEvaluationRequest​

Type: object

4 properties
NameTypeRequiredDescription
subjectSubjectYes
resourceResourceYes
actionActionYes
contextobject

Request context for the evaluation.

AccessEvaluationResponse​

Type: object

2 properties
NameTypeRequiredDescription
decisionbooleanYes

Whether the subject is authorized for the requested action.

contextobject

Decision context. Denied decisions may include a reason.

AccessEvaluationsRequest​

Type: object

1 property
NameTypeRequiredDescription
evaluationsarray of AccessEvaluationRequestYes

AccessEvaluationsResponse​

Type: object

1 property
NameTypeRequiredDescription
evaluationsarray of AccessEvaluationResponseYes

AccessActionSearchRequest​

Type: object

3 properties
NameTypeRequiredDescription
subjectSubjectYes
resourceResourceYes
contextobject

Request context for the action search.

AccessSearchResponse​

Type: object

1 property
NameTypeRequiredDescription
resultsarray of ActionYes

AuthZENErrorResponse​

Type: object

1 property
NameTypeRequiredDescription
errorstringYes

Error message.

Allowed values: Invalid request format, Missing subject, Missing resource, Missing action, Missing evaluations, Invalid subject, Invalid action, Invalid resource, Internal server error

SecurityErrorResponse​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code.

messageLocalizedMessageYes
descriptionLocalizedMessageYes

LocalizedMessage​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes

Message key.

defaultValuestringYes

Default message.

Was this page helpful?