-
Notifications
You must be signed in to change notification settings - Fork 0
feat(api): OAuth 2.1 + sessions + magic link auth (full v2 auth stack) #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alextnetto
wants to merge
15
commits into
main
Choose a base branch
from
relaxed-leavitt-61728d
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5fab396
docs: add v2 roadmap specs and implementation task files
alextnetto 5478330
feat(api): add auth env vars and auth tables to db bootstrap
alextnetto 1b8fb27
fix(api): correct REQUIRE_AUTH string coercion and add sessions token…
alextnetto 430eab8
feat(api): add Ed25519 JWT signing and verification
alextnetto 0964a9f
feat(api): add OAuth metadata and JWKS endpoints
alextnetto 34d06c1
feat(api): add dynamic OAuth client registration (RFC 7591)
alextnetto 01cbb2f
feat(api): add Google OAuth flow with state JWT and login page
alextnetto cdea598
feat(api): add magic link passwordless email login flow
alextnetto fa2a3eb
feat(api): add OAuth token endpoint with refresh rotation and revocation
alextnetto 7ce9739
feat(api): add Hono + MCP auth middleware with session helpers
alextnetto 7b44b02
feat(api): add browser session endpoints and browser_session login flow
alextnetto c5c3808
feat(api): wire authenticated user identity into page creation
alextnetto 7e088b7
fix(api): wire initKeys at boot, verify Google JWKS, harden PKCE compare
alextnetto c0b7712
style: prettier formatting fixes
alextnetto 456d063
build: regenerate mcp server bundle with PAGENT_TOKEN forwarding
alextnetto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
REQUIRE_AUTH=true, this route only checks that a user is authenticated, not that the bearer token haspage:create. A token minted with narrower scope (for examplepage:read) can still create pages, which violates the documented scope grants and turns scope reduction into a no-op for REST mutations.Useful? React with 👍 / 👎.