How openid/authzen works
AuthZEN is a standards and interoperability repository. The supplied README describes authorization APIs and profiles, while the available source tree centers on runnable interop applications: a Todo client/backend, an identity-provider demo, a search demo, and API-gateway adapters. The graph emphasizes the Todo authorization path and preserves these distinct branches. Edges are limited to relationships shown in excerpts or documented in the README; unsampled integrations are not inferred.
Main entry points: App.tsx Todo application · server.ts Todo HTTP backend · useTodos.ts Todo data hooks · authzen-api-gateways Gateway integrations
Components 27
Todo Interop
- Todo application
interop/authzen-todo-application/src/App.tsx - Todo controls
interop/authzen-todo-application/src/components/Todos.tsx - Create todo
interop/authzen-todo-application/src/components/CreateTodo.tsx - AuthZEN settings
interop/authzen-todo-application/src/components/AuthZENSettings.tsx - Gateway and PDP config
interop/authzen-todo-application/src/context/ConfigContext.tsx - Client authentication
interop/authzen-todo-application/src/context/AuthContext.tsx - Todo data hooks
interop/authzen-todo-application/src/hooks/useTodos.ts - Todo API client
interop/authzen-todo-application/src/api/todoApi.ts - Todo HTTP backend
interop/authzen-todo-backend/src/server.ts - Todo store
interop/authzen-todo-backend/src/store.ts - User directory
interop/authzen-todo-backend/src/directory.ts - Authorization checks
interop/authzen-todo-backend/src/auth.ts - Stateful PDP adapter
interop/authzen-todo-backend/src/statefulAuthorizationService.ts - OpenFGA adapter
interop/authzen-todo-backend/src/stateful/openfga.ts
Identity Demo
- OIDC login handler
interop/authzen-idp/app/lib/create-idp-handler.ts - ID token and audit UI
interop/authzen-idp/app/components/id-token.client.tsx - Audit log view
interop/authzen-idp/app/components/audit-log.tsx
Search Demo
- Search demo interface
interop/authzen-search-demo/app/_layout.tsx - Search and resource routes
interop/authzen-search-demo/app/routes/resource.tsx - Search PDP client
interop/authzen-search-demo/app/lib/callPdp.ts
Gateway Adapters
- Gateway integrations
interop/authzen-api-gateways - AWS API Gateway
interop/authzen-api-gateways/aws-api-gateway/authzen.mjs - Envoy authorizer
interop/authzen-api-gateways/envoy-gateway/authzen-external-authorizer/authzen.go - Tyk plugin
interop/authzen-api-gateways/tyk-gateway/plugins/authzen.go - Zuplo module
interop/authzen-api-gateways/zuplo-gateway/modules/authzen.ts
Authorization Services
- AuthZEN PDP
Other components
- Todo user
Connections 28
- Todo user → Todo application: uses
README.md - Todo application → Todo controls: renders
interop/authzen-todo-application/src/App.tsx - Todo application → Create todo: renders
interop/authzen-todo-application/src/App.tsx - Todo application → AuthZEN settings: renders
interop/authzen-todo-application/src/App.tsx - Todo application → Todo data hooks: reads todos
interop/authzen-todo-application/src/App.tsx - AuthZEN settings → Gateway and PDP config: reads settings
interop/authzen-todo-application/src/components/AuthZENSettings.tsx - Todo data hooks → Gateway and PDP config: gets gateway config
interop/authzen-todo-application/src/hooks/useTodos.ts - Todo data hooks → Todo API client: calls
interop/authzen-todo-application/src/hooks/useTodos.ts - Todo controls → Todo data hooks: uses
interop/authzen-todo-application/src/components/Todos.tsx - Create todo → Todo data hooks: uses
interop/authzen-todo-application/src/components/CreateTodo.tsx - Todo application → Client authentication: reads identity
interop/authzen-todo-application/src/App.tsx - Todo API client → Todo HTTP backend: HTTP requests
README.md - Todo HTTP backend → Todo store: reads and writes
interop/authzen-todo-backend/src/server.ts - Todo HTTP backend → User directory: looks up users
interop/authzen-todo-backend/src/server.ts - Todo HTTP backend → Authorization checks: checks access
interop/authzen-todo-backend/src/server.ts - Authorization checks → AuthZEN PDP: evaluates access
interop/authzen-todo-backend/src/auth.ts - Todo HTTP backend → Stateful PDP adapter: creates adapter
interop/authzen-todo-backend/src/server.ts - Stateful PDP adapter → OpenFGA adapter: selects OpenFGA
interop/authzen-todo-backend/src/statefulAuthorizationService.ts - OpenFGA adapter → AuthZEN PDP: updates tuples
- OIDC login handler → AuthZEN PDP: externalizes authorization
- ID token and audit UI → Audit log view: renders preview
interop/authzen-idp/app/components/id-token.client.tsx - Todo user → OIDC login handler: authenticates
- Search demo interface → Search and resource routes: hosts routes
- Search and resource routes → Search PDP client: requests decisions
- Gateway integrations → AWS API Gateway: includes
interop/authzen-api-gateways/aws-api-gateway/authzen.mjs - Gateway integrations → Envoy authorizer: includes
- Gateway integrations → Tyk plugin: includes
- Gateway integrations → Zuplo module: includes