A Policy Enforcement Point for the OpenID AuthZEN Authorization API in Java.
Your application asks a Policy Decision Point (PDP) such as Keycloak, Cerbos or Topaz whether a caller may perform an action on a resource, and enforces the answer. authzen-enforcer is that enforcing side: a zero-dependency client for Java 17+ and a Spring Boot starter, fail-closed by default.
@CheckPermission // read on {type: "documents", id: <id>}, asked of the PDP
@GetMapping("/documents/{id}")
public Document getDocument(@PathVariable String id) { ... }authzen:
pdp:
url: https://pdp.example.com # the only required setting| Repository | |
|---|---|
| authzen-enforcer | The SDK: core client, Spring Boot starter, Micrometer and OpenTelemetry modules, docs |
| authzen-enforcer-examples | Runnable examples against a containerized Keycloak PDP: plain Java and Spring Boot |
Get involved: ask in Discussions, pick a good first issue, or see the contributing guide.
An independent project, not affiliated with or endorsed by the OpenID Foundation.