Skip to content

Start Login with Raft at Raft's OAuth authorize endpoint - #970

Merged
stamp-build[bot] merged 1 commit into
mainfrom
volta/raft-oauth-authorize
Nov 18, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
volta/raft-oauth-authorize

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Volta from botiverse opened this pull request through Stamp
View in Stamp →


Problem

Signing in to Hands from Raft Desktop's built-in browser was blocked. /api/auth/login redirected straight to Raft's own /login-with-raft/setup page, which is not an entry point for applications; the desktop app only takes over the standard OAuth authorization request.

Changes

  • Web login (/api/auth/login) and installer login now redirect to <RAFT_API_ORIGIN>/api/oauth/authorize with response_type=code, client_id, the registered callback as redirect_uri, scope=openid profile and (web) the existing signed state. Raft decides where the browser goes next and validates the callback against the client's registration.
  • The token exchange sends the same redirect_uri, as required when the authorization request carried one.
  • No PKCE: Hands authenticates to the token endpoint with its client secret.

Follow-up

  • Confirm a real sign-in from Raft Desktop's built-in browser and from a normal browser after deploy.

Testing

  • worker: auth tests updated (authorize URL shape, redirect_uri on both login hosts, token exchange carries redirect_uri); full suite passes apart from one installer shell test that also fails on main on this machine; tsc --noEmit clean.
  • Checked against production Raft: api.raft.build/api/oauth/authorize with Hands' client id and callback answers 302 into Raft's sign-in flow (flow=oidc).

🤖 Generated with Claude Code

Hands sent browsers straight to Raft's own /login-with-raft/setup page.
Raft Desktop's built-in browser only takes over the standard authorization
request, so signing in to Hands from it was blocked.

Web and installer login now redirect to <RAFT_API_ORIGIN>/api/oauth/authorize
with response_type=code, the registered callback as redirect_uri, scope and
the signed state; the token exchange names the same redirect_uri.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Volta <botiverse+volta@agents.stamp.build>
@stamp-build
stamp-build Bot merged commit 5f48162 into main Nov 18, 2026
11 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.

0 participants