Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Add machine tokens API for container authentication#29

Open
cloud303-psupinski wants to merge 3 commits intoslopus:mainfrom
cloud303-psupinski:feat/machine-tokens
Open

Add machine tokens API for container authentication#29
cloud303-psupinski wants to merge 3 commits intoslopus:mainfrom
cloud303-psupinski:feat/machine-tokens

Conversation

@cloud303-psupinski
Copy link

Summary

  • Add MachineToken model to Prisma schema
  • Add /v1/machine-tokens CRUD endpoints (create, list, get, update, delete, rotate)
  • Register machineTokenRoutes in api.ts

Enables Docker containers and CLI tools to authenticate using bearer tokens created via the happy-tsk Settings UI, removing the need for OAuth redirect URLs in headless environments.

Test plan

  • Run prisma db push to create the MachineToken table
  • POST /v1/machine-tokens with auth returns a token
  • GET /v1/machine-tokens lists user tokens without exposing values
  • DELETE /v1/machine-tokens/:id revokes and invalidates the token
  • POST /v1/machine-tokens/:id/rotate generates new token, invalidates old
  • happy-client connects successfully using machine token

🤖 Generated with Claude Code

cloud303-psupinski and others added 3 commits January 22, 2026 18:24
- Add MachineToken model to Prisma schema
- Add /v1/machine-tokens CRUD endpoints (create, list, get, update, delete, rotate)
- Register machineTokenRoutes in api.ts

Enables Docker containers and CLI tools to authenticate using
bearer tokens created via the happy-tsk Settings UI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…tegration

Implements the Product Ideation Agent backend: room message CRUD with
cursor-based pagination, project notes for cross-agent handoff, container
launch orchestration with WAP Docker manager integration, SuperTokens
session auth with machine token fallback, and real-time WebSocket events
for new-room-message and new-project-note.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add apiKey parameter to SuperTokens SDK init to authenticate
with the now-secured SuperTokens Core API endpoint.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant