How nick-maximillien/openclaw-auth0-vault works
CFO Shield is a delegated-identity gateway for autonomous agents: a user authorizes provider access in the Next.js vault, the frontend synchronizes the subject token to the Go proxy, and agent requests are exchanged for scoped downstream tokens before API execution. The repository also includes an OpenClaw workspace with service skills and a broader set of integrations documented in the README. Several provider handlers and workspace workflows are not fully excerpted, so those capabilities are shown at subsystem level; edges use README evidence where source wiring was not shown.
Main entry points: main.go Shield Middleware · page.tsx Vault Dashboard · openclaw.json OpenClaw Agent · google Google Workspace
Components 21
User Delegation
- Vault Dashboard
next-vault/src/app/page.tsx - Auth0 Session
next-vault/src/app/lib/auth0.ts - Auth Routes
next-vault/src/proxy.ts - Policy & Audit UI
next-vault/src/app/vault-management/page.tsx - Help Guide
next-vault/src/app/help/page.jsx
Secure Gateway
- HTTP Router
vault-api/main.go - Active Session
vault-api/main.go - Shield Middleware
vault-api/main.go - Token Exchange
vault-api/main.go
Enterprise Integrations
- Google Workspace
vault-api/google - GitHub API
vault-api/github/github.go - Social APIs
vault-api/social - Notion API
vault-api/notion/notion.go - Autobooks API
vault-api/autobooks/autobooks.go - Tavily Search
vault-api/tavily/search.go
Agent Runtime
- OpenClaw Agent
openclaw-workspace/openclaw.json - Service Skills
openclaw-workspace/workspace/skills - Login Skill
openclaw-workspace/workspace/skills/cfo-login/index.ts
Other components
- Principal
- Auth0
- External Services
Connections 27
- Principal → Vault Dashboard: authorizes
README.md - Vault Dashboard → Auth0 Session: loads session
next-vault/src/app/page.tsx - Auth Routes → Auth0 Session: mounts auth
next-vault/src/proxy.ts - Vault Dashboard → Auth0: exchanges tokens
next-vault/src/app/page.tsx - Vault Dashboard → HTTP Router: syncs subject token
next-vault/src/app/page.tsx - Policy & Audit UI → Principal: shows policies
next-vault/src/app/vault-management/page.tsx - Help Guide → Principal: explains operation
next-vault/src/app/help/page.jsx - OpenClaw Agent → Service Skills: uses skills
README.md - Service Skills → Login Skill: includes login
openclaw-workspace/workspace/skills/cfo-login/index.ts - OpenClaw Agent → HTTP Router: requests APIs
README.md - HTTP Router → Active Session: synchronizes token
vault-api/main.go - HTTP Router → Shield Middleware: routes protected calls
vault-api/main.go - Shield Middleware → Active Session: reads subject token
vault-api/main.go - Shield Middleware → Token Exchange: requests scoped token
vault-api/main.go - Token Exchange → Auth0: exchanges token
vault-api/main.go - Shield Middleware → Google Workspace: dispatches requests
vault-api/main.go - Shield Middleware → GitHub API: dispatches requests
README.md - Shield Middleware → Social APIs: dispatches requests
vault-api/main.go - Shield Middleware → Notion API: dispatches requests
README.md - Shield Middleware → Autobooks API: dispatches requests
README.md - Shield Middleware → Tavily Search: dispatches requests
README.md - Google Workspace → External Services: proxies API calls
- GitHub API → External Services: proxies API calls
- Social APIs → External Services: proxies API calls
- Notion API → External Services: proxies API calls
- Autobooks API → External Services: proxies API calls
- Tavily Search → External Services: searches
vault-api/tavily/search.go