Magenta Console

Sessions & OAuth

Authentication

Google Workspace login, CMYK OTP, magenta_auth, and dev bypass.

← All guides

Admin console (Google Workspace)

  1. GET /api/auth/status — check if OAuth is configured
  2. GET /api/auth/google/start — begin OAuth flow
  3. Callback: /api/auth/google/callback
  4. Session cookie: magenta_session

Local dev bypass

When GOOGLE_CLIENT_ID is a placeholder, use dev bypass on the admin login page or GET /api/auth/dev/bypass/scott@derozic.com.

CMYK mobile OTP

# Send OTP
POST /api/cmyk/auth/otp/send
{"phone": "+15551234567"}

# Verify
POST /api/cmyk/auth/otp/verify
{"phone": "+15551234567", "code": "123456"}