Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/oauth-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ Postgres.
Hosted connectors may consume `locality-auth-core` for IDs and scope profiles,
but hosted availability, tenant binding, finalization, grants, and jobs remain
private runtime responsibilities.

## Backend Image Boundary

The public `apps/oauth-service` broker is the desktop/local-direct OAuth helper.
It completes provider authorization through localhost and must not be deployed
as the hosted credential authority for enterprise/admin sources.

Hosted/admin OAuth is a backend process mode in `locality-internal`. That mode
owns tenant-bound intents, provider callbacks, managed secret references,
Postgres finalization, and worker handoff. Keeping the boundary explicit lets
the public repo share connector identity and callback vocabulary without
shipping hosted tenant authorization, Secrets Manager policy, or admin
credential lifecycle code.
Loading