Policy Enforcement Point
Choreo Identity & Access Management can act as an AuthZEN policy enforcement point (PEP). In this mode, a configured AuthZEN policy decision point (PDP) evaluates authorization requests, while Choreo Identity & Access Management enforces the returned decision in its authorization flow.
The configured AuthZEN PDP owns the authorization policy. Choreo Identity & Access Management provides the authenticated subject, requested permissions, resource server context, and any request context required for the evaluation.
How the PEP Flow Works
Authorization Requests from a PEP
When a PEP calls Choreo Identity & Access Management with an AuthZEN evaluation, Choreo Identity & Access Management validates the request and resolves resource.type to the target resource server. If the resource server uses a configured AuthZEN PDP as its authorization engine, Choreo Identity & Access Management delegates the evaluation to that PDP. Choreo Identity & Access Management returns the resulting allow or deny decision in the AuthZEN response, and that PEP enforces it.
Token Issuance Flow
During an authorization flow, Choreo Identity & Access Management resolves the target resource server and the candidate permissions for the token. If the resource server uses a configured AuthZEN PDP as its authorization engine, Choreo Identity & Access Management sends an AuthZEN evaluation for each permission. The configured AuthZEN PDP returns an allow or deny decision for each evaluation. Choreo Identity & Access Management removes permissions denied by the PDP and issues the token with only the allowed permissions.
What Choreo Identity & Access Management Sends to the Configured AuthZEN PDP
Choreo Identity & Access Management creates an AuthZEN evaluation for each permission under evaluation:
| AuthZEN field | Value sent by Choreo Identity & Access Management |
|---|---|
subject | The subject type and ID. properties contains the configured subject attributes available for the subject. Attribute mappings rename properties when the configured AuthZEN PDP expects different names. |
resource | The target resource server identifier, sent as resource.type. |
action | The Choreo Identity & Access Management permission under evaluation, sent as action.name. |
context | Optional request-time data supplied by the authorization flow. |
Choreo Identity & Access Management sends the evaluation to the configured AuthZEN PDP through the access evaluation API. The PDP returns an allow or deny decision for each permission evaluated. Choreo Identity & Access Management enforces these decisions by retaining only the allowed permissions. If the PDP cannot complete the evaluation, the authorization flow fails.
Configure Choreo Identity & Access Management
Create an AuthZEN PDP Connection
- Switch to the organization view and go to Connections, then select Add custom connection.
- Select Policy decision point (PDP), then select AuthZEN.
- Enter a connection name and continue to the connection configuration.
- Enter the required AuthZEN evaluation endpoint. Optionally enter an AuthZEN batch evaluation endpoint, then select Create connection.
- On the General tab, configure Timeout and Retry count. Choreo Identity & Access Management uses the configured defaults when you leave them unchanged. The Organization unit card on this tab shows the owner of the connection.
- Open the Authentication tab. Select None, Bearer token, Basic authentication, or API key as the authentication method.
- To configure which user and agent attributes to send to the configured AuthZEN PDP, open the Attribute configuration tab.
- Under User, select a user type. Select the user attributes to send to the configured AuthZEN PDP. If the PDP expects different property names, map each attribute to the corresponding name.
- Under Agent, select the agent attributes to send to the configured AuthZEN PDP. If the PDP expects different property names, map each attribute to the corresponding name.
Authenticated remote evaluation endpoints must use HTTPS. Loopback endpoints may use HTTP. Changing the single or batch evaluation endpoint requires fresh credentials before the connection can be saved.
Every AuthZEN PDP connection belongs to one organization unit. A declarative AuthZEN PDP connection must carry ouId or ouHandle.
Assign an authorization engine to a resource server
- Open Resource servers and select the target resource server.
- Open the Advanced tab. Under Authorization engine, select Local - role based access control to use the built-in authorization engine, or select a configured AuthZEN PDP.
- Save the changes.
The resource server now delegates its authorization evaluations to the selected AuthZEN PDP. Choreo Identity & Access Management sends the evaluation to that PDP and applies or returns the decision according to the authorization flow.
Related Guides
- Resource Servers: define the resource server, resources, actions, and permissions evaluated by the configured AuthZEN PDP.
- Roles: assign candidate permissions to users, groups, applications, and agents.
Was this page helpful?