Skip to main content
POST
Test Authzen Policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

app_id
string
required

App identifier.

authzen_server_id
string
required

AuthZEN server identifier.

Body

application/json

AuthzenServerServiceTestAuthzenPolicyRequest evaluates a stored or inline CEL policy against a live request tuple without requiring activation.

This message contains a oneof named policy. Only a single field of the following list may be set at a time:

  • policyId
  • cel
cel
Authzen Cel Policy · object | null

AuthzenCelPolicy holds the CEL source for a policy revision.

policyId
string | null

Test an already-stored policy revision by id. This field is part of the policy oneof. See the documentation for c1.api.authzen.v1.AuthzenServerServiceTestAuthzenPolicyRequest for more details.

request
Authzen Test Request · object | null

AuthzenTestRequest is one AuthZEN access-evaluation request tuple to test a policy against.

Response

200 - application/json

AuthzenServerServiceTestAuthzenPolicyResponse returns the evaluation outcome for authoring feedback.

AuthzenServerServiceTestAuthzenPolicyResponse returns the evaluation outcome for authoring feedback.

decision
boolean

The policy's decision. Only meaningful when error is empty.

error
string

Compile or runtime error, if evaluation could not produce a decision.

variables
object | null