Policy Decision Point
Choreo Identity & Access Management acts as an AuthZEN policy decision point (PDP). A Policy Enforcement Point (PEP), such as a gateway, adapter, service, or application, calls Choreo Identity & Access Management before it allows access to a protected resource.
How the PDP Flow Works
The PEP calls Choreo Identity & Access Management with the server-level Direct Auth Secret. AuthZEN access endpoints under /access/**
require the Direct-Auth-Secret header. The metadata endpoint stays public so PEPs can discover the PDP endpoints.
{
"subject": {
"type": "user",
"id": "<subject-id>"
},
"resource": {
"type": "https://api.example.com/booking",
"id": "<booking-id>"
},
"action": {
"name": "reservations:view"
}
}
Choreo Identity & Access Management evaluates the request and returns a decision:
{
"decision": true
}
How Choreo Identity & Access Management Implements It
| Aspect | Behavior |
|---|---|
| PDP metadata | GET /.well-known/authzen-configuration |
| Single access evaluation | POST /access/v1/evaluation |
| Batch access evaluation | POST /access/v1/evaluations |
| Action search | POST /access/v1/search/action |
subject.id | Required. Identifies the user, application, or agent being evaluated. |
subject.type | Optional. When provided, Choreo Identity & Access Management validates that the subject ID matches the subject category. |
resource.type | Required. Maps to the Choreo Identity & Access Management resource server identifier. |
resource.id | Optional in Choreo Identity & Access Management. Identifies the protected resource instance when provided and is reserved for future resource-instance authorization. |
action.name | Required. Must match a permission registered on the resource server. |
context | Optional object for request-time attributes. |
Configure Choreo Identity & Access Management
The following example creates the reservations:view permission and assigns it to a subject that can view
reservations.
Create a Resource Server
- Sign in to the Choreo Identity & Access Management Console at
https://<HOST>:<PORT>/console. - Select Resource servers, then select New Resource Server.
- Enter the following values:
- Name:
Booking API - Identifier:
https://api.example.com/booking - Delimiter:
:
- Name:
- Select Create.
For details about resource server fields and permission formats, see Resource Servers.
Create a Resource
- Open the Booking API resource server.
- Select the Resources tab, then select New Resource.
- Enter the following values:
- Name:
Reservations - Handle:
reservations
- Name:
- Select Create.
Create an Action
- Open the Reservations resource.
- Select the Actions tab, then select New Action.
- Enter the following values:
- Name:
View Reservations - Handle:
view
- Name:
- Select Create.
- Confirm that the generated permission is
reservations:view.
The action.name value in an AuthZEN request must match this complete permission string.
Assign the Permission to a Subject
- Select Roles, then select New Role.
- Create a role named
Booking API Viewer. - Add the
reservations:viewpermission to the role. - Complete the role creation.
- Open the role and select the Assignments tab.
- Add the users, groups, applications, or agents that can view reservations.
The authorization decision evaluates the user, application, or agent identified by subject.id. For a group assignment,
use the ID of a group member as subject.id; Choreo Identity & Access Management includes the subject's group memberships in the
evaluation. For more information, see Roles.
Direct Auth Secret
The PEP uses a server-level Direct Auth Secret, sent in the Direct-Auth-Secret header, to call protected AuthZEN endpoints. A missing or incorrect secret returns 401. This secret authenticates the PEP or adapter that sends the request. It does not replace the subject in the evaluation request.
Choreo Identity & Access Management hosted tenants do not issue a Direct Auth Secret, so the protected AuthZEN endpoints are not available on a hosted tenant today.
Map the Configuration to AuthZEN
Use the configured values in an access evaluation request:
- Set
subject.idto the ID of the user, application, or agent being evaluated. - Set
resource.typeto the resource server identifier,https://api.example.com/booking. - Optionally set
resource.idto the reservation instance identifier. - Set
action.nameto the generated permission,reservations:view.
Discover AuthZEN Metadata
Use the metadata endpoint to discover the Choreo Identity & Access Management PDP base URL and supported AuthZEN API endpoints. This endpoint does not require authentication.
curl https://<DATA_PLANE_URL>/.well-known/authzen-configuration
Response:
{
"policy_decision_point": "https://<DATA_PLANE_URL>",
"access_evaluation_endpoint": "https://identity-platform.example.com/access/v1/evaluation",
"access_evaluations_endpoint": "https://identity-platform.example.com/access/v1/evaluations",
"search_action_endpoint": "https://identity-platform.example.com/access/v1/search/action"
}
Evaluate Single Access Request
Use /access/v1/evaluation when the PEP needs one allow or deny decision. The response contains decision: true when
the subject has the requested permission.
curl -X POST https://identity-platform.example.com/access/v1/evaluation \
-H 'Content-Type: application/json' \
-H 'Direct-Auth-Secret: <direct-auth-secret>' \
-d '{
"subject": {
"type": "user",
"id": "<subject-id>"
},
"resource": {
"type": "https://api.example.com/booking",
"id": "<booking-id>"
},
"action": {
"name": "reservations:view"
}
}'
Allowed response:
{
"decision": true
}
Denied response:
{
"decision": false,
"context": {
"reason": "Subject is not authorized to perform the requested action"
}
}
If resource.type does not match a resource server identifier, or action.name does not match a registered permission,
Choreo Identity & Access Management returns a denied decision with error context instead of allowing the request.
A suspended subject is denied whatever its roles allow, with the reason Subject is suspended, and an action search for it returns no actions. In a batch, an evaluation for that subject that is missing a field or names an unknown resource keeps that error context instead, and is denied either way. A locked subject is decided by its roles alone, because a lock only stops new sign-ins.
Evaluate Multiple Access Requests
Use /access/v1/evaluations when the PEP needs decisions for multiple access requests in one call. Choreo Identity & Access Management
preserves request order in the response, so each result maps to the evaluation at the same array index.
curl -X POST https://identity-platform.example.com/access/v1/evaluations \
-H 'Content-Type: application/json' \
-H 'Direct-Auth-Secret: <direct-auth-secret>' \
-d '{
"evaluations": [
{
"subject": {
"type": "user",
"id": "<subject-id>"
},
"resource": {
"type": "https://api.example.com/booking",
"id": "<booking-id>"
},
"action": {
"name": "reservations:view"
}
},
{
"subject": {
"type": "user",
"id": "<subject-id>"
},
"resource": {
"type": "https://api.example.com/booking",
"id": "<booking-id>"
},
"action": {
"name": "reservations:delete"
}
}
]
}'
Response:
{
"evaluations": [
{
"decision": true
},
{
"decision": false,
"context": {
"reason": "Subject is not authorized to perform the requested action"
}
}
]
}
An empty evaluations array returns a request error.
Search Allowed Actions
Use /access/v1/search/action when the PEP needs to know which registered actions the subject can perform on a
resource. Choreo Identity & Access Management checks the permissions under the target resource server and returns only the allowed actions.
curl -X POST https://identity-platform.example.com/access/v1/search/action \
-H 'Content-Type: application/json' \
-H 'Direct-Auth-Secret: <direct-auth-secret>' \
-d '{
"subject": {
"type": "user",
"id": "<subject-id>"
},
"resource": {
"type": "https://api.example.com/booking",
"id": "<booking-id>"
}
}'
Response:
{
"results": [
{
"name": "reservations:view"
},
{
"name": "reservations:update"
}
]
}
Related Guides
- Resource Servers define protected APIs, resources, and actions.
- Roles assign permissions to users, groups, applications, and agents.
- Security Configuration describes how to configure the Direct Auth Secret for protected direct endpoints.
- Envoy shows how to configure Envoy to call Choreo Identity & Access Management as an AuthZEN PDP.
Was this page helpful?