Skip to content

docs: role-gating two topologies (edge gate vs cookie-session SSR {from})#423

Merged
MajorTal merged 1 commit into
mainfrom
claude/role-gate-topology-docs
Jun 3, 2026
Merged

docs: role-gating two topologies (edge gate vs cookie-session SSR {from})#423
MajorTal merged 1 commit into
mainfrom
claude/role-gate-topology-docs

Conversation

@MajorTal
Copy link
Copy Markdown
Collaborator

@MajorTal MajorTal commented Jun 3, 2026

D1 of add-ssr-role-guard-helper (run402-private). Splits the role-based-access docs into the two non-interchangeable topologies: Bearer/API → edge requireRole gate (Bearer-only, per-function, JSON 403) vs cookie-session SSR → in-function auth.requireRole/role({ from }) (@run402/functions 3.5.0). Astro SSR catch-all as the worked example. Docs-only; syncs to the site via the private deploy-site. 🤖 Generated with Claude Code

…cookie-session SSR {from})

D1 of add-ssr-role-guard-helper. Documents that the deploy-spec requireRole edge gate authenticates via Bearer JWT only (doesn't see cookie sessions), is per-function, and returns a JSON 403; cookie-session SSR (Astro/Next) uses the in-function auth.requireRole/role({from}) guard (@run402/functions 3.5.0). Astro SSR catch-all as the worked example.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MajorTal MajorTal merged commit 75873e1 into main Jun 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant