A Policy Enforcement Point for the OpenID AuthZEN Authorization API 1.0 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 4 starter for Spring MVC and Spring WebFlux (preview), 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, Spring MVC and Spring WebFlux, with metrics through Micrometer and traces through OpenTelemetry |
Get involved: ask in Discussions, pick a good first issue, or see the contributing guide.
Connect
- Releases and articles: @authzenenforcer on X
- Questions and ideas: Discussions
- Anything that does not belong in public: authzen.enforcer@gmail.com. Report vulnerabilities privately on GitHub instead.
An independent project, not affiliated with or endorsed by the OpenID Foundation.