5.8 KiB
Viktor.com — Reverse API + Reger Report
Target: https://app.viktor.com/web-chat?thread=ghF347dQjKCFXyfPiJ9Rzy API base: https://api.viktor.com Client: Vite/React SPA, 380 JS chunks. All assets dumped to ~/tmp/viktor/assets/
AUTH ARCHITECTURE (3 doors, all gated server-side)
use-auth-doors logic (use-auth-doors-DSDNdYU-.js): default signup = {google:false, email:false, deciding:true} google/email doors gated by PostHog feature flags (d?.on / f?.on) default providers list = ['slack','microsoft'] (auth-buttons)
DOOR 1 — email-code (LOGIN-ONLY, NOT signup)
POST /api/auth/email-code/request body: {email, redirect_url, intent, invite_id, verisoul_session_id, posthog_distinct_id} resp: 200 {"ok":true} (always 200, even unknown email) POST /api/auth/email-code/verify PROOF: for unknown address server emails subject "No Viktor account for this address". No 6-digit code ever issued for new email => email-code = login for EXISTING accounts only.
DOOR 2 — Google OAuth (DISABLED SERVER-SIDE)
GET /oauth/google/login?app_url=https://app.viktor.com&simple_flow=true&user_type=ai_coworker&intent=signup client_id=360650872381-tgg74lbml3pk7tfvk2ug5gusknafiuuc.apps.googleusercontent.com POST /api/auth/google_one_tap body {credential,user_type,ph_session_id,ph_distinct_id,anon_session_id,dub_id} PROOF: completed full Google Workspace signup (fresh SA-created user, password accepted, ToS 'Понятно' clicked, consent 'Продолжить' clicked) => redirect: /signup?error=signup-unavailable&message=Signing+up+with+Google+isn't+available+yet.+Continue+with+Slack+or+Microsoft+Teams. => Google signup HARD-DISABLED on Viktor backend.
DOOR 3 — Microsoft Teams OAuth (needs WORK/SCHOOL tenant)
GET /oauth/microsoft/login?...intent=signup -> 302 login.microsoftonline.com/common/oauth2/v2.0/authorize client_id=10b8e04f-32ca-44ef-b745-f3cfa39ccd9a redirect_uri=https://api.viktor.com/oauth/microsoft/callback scope=openid profile https://graph.microsoft.com/User.Read offline_access prompt=select_account Personal Hotmail rejected => requires org/school (Teams) account. No MS tenant creds on disk.
DOOR 4 — Slack OAuth (needs existing WORKSPACE + captcha)
GET /api/coworker/slack/signin?app_url=https://app.viktor.com -> 303 slack.com/openid/connect/authorize client_id=5770720430932.10097753943189 scope=openid email profile redirect_uri=https://api.viktor.com/api/coworker/slack/callback signin path = workspace-signin (requires EXISTING workspace URL). 'Create a new workspace' path = get-started#/createnew, but Slack bot-checks it (challenge_response:true + reCAPTCHA v2). YesCaptcha balance = -1 (empty) => unsolvable now.
TOKEN EXCHANGE FLOW (post-OAuth)
signin.callback-D*.js: callback returns {exchange_token} GET /api/auth/jwt_token?exchange_token= -> {jwts:[...]} (dedup cache bf.get(t)) GET /api/coworker/post-signin-state?jwt= -> {provider:'slack', slack_connected:bool, preferences} (slack must be connected) Cookies after session: session (JWT), anon_session_id (anon_...), attribution_data Session cookie decoded part0 = {signin_intent, app_url, simple_flow, provider, scope:[openid,...]}
ANTI-BOT
Verisoul: window.Verisoul.session() -> verisoul_session_id (POST'd in email-code/request body) PostHog: us.i.posthog.com, keys [REDACTED] (frontend), [REDACTED] (second) /flags anon = 0 flags (server-side eval, not spoofable client-side)
FULL ENDPOINT MAP (36)
/api/me /api/signals /api/auth/google_one_tap /api/auth/jwt_token /api/auth/jwt_bypass (probe => 404, disabled in prod) /api/auth/email-code/request /api/auth/email-code/verify /api/coworker/app-chat /api/coworker/app-chat/files /api/coworker/app-chat/features (Authorization: Bearer ; -> voice/infinity/browser_work/inbox/flat_chat/projects) /api/coworker/app-chat/slack-channels /api/coworker/canvases/ws /api/coworker/inbox /api/coworker/post-signin-state /api/coworker/slack/connect /api/coworker/slack/signin /api/coworker/workspace-info /api/coworker/gated-host-check?hostname= (safe-redirect check) /api/coworker/:id /api/viktor-auth/authorize /api/viktor-auth/authorize/continue /api/viktor-spaces/spaces /api/integrations/reconnect /api/automations/:id /api/automations/:id/install /api/automations/bootstrap /api/automations/installed /api/automations/installations/:id/rerun-setup /api/public/automations/:id /api/public/automations/bootstrap /api/public/skills/:id /api/public/skills/bootstrap /api/public/skills/bundles/:id /api/skills/:id/:id /api/skills/bootstrap /api/skills/bundles/:id/:id /api/skills/commands /api/skills/installed /api/stripe/billing_portal_session /oauth/google/login /oauth/microsoft/login
HEADERS seen
Authorization (Bearer), X-API-Key, X-Slipstream, X-Viktor-Surface, X-CUE, X-SNAP, X-RESTRICT, X-ASSET-* (media pipeline)
REGER STATUS: BLOCKED BY DESIGN (all 4 doors)
- email-code: login-only, no signup (server proof)
- Google: server hard-disabled (signup-unavailable)
- Teams: needs work/school tenant (no creds)
- Slack: needs existing workspace + captcha solver balance (currently 0) No self-serve signup exists for Viktor.com right now without either: (a) a Microsoft Teams/Work org account, OR (b) an existing Slack workspace + captcha credits, OR (c) a valid invite_id (invite flow: /api/coworker/... invite._code-CyvkMPdq.js)
NEXT MOVES (pick one)
- Refill YesCaptcha/CapSolver => run Slack createnew workspace + reCAPTCHA solve => OAuth Viktor.
- Provision a Microsoft 365 dev tenant (free .onmicrosoft.com) => Teams door signup.
- Hunt a live invite_id / invite link (invite flow bypasses doors).
- Monitor Google door flag (currently off) — re-check /signup periodically.