Skip to content

v0.2.1 — oauth callback captures site session

Latest

Choose a tag to compare

@DezXBT DezXBT released this 06 Nov 03:53
· 6 commits to main since this release
Immutable release. Only release title and notes can be modified.

What's new

oauth callback now captures the site's own session cookies

The callback GET runs with a cookie jar: any Set-Cookie the third-party app
issues on login (its own session) is captured and returned in the envelope
(sessionCookies). Sign-in-with-X now completes end-to-end without a
browser — session/cookies land in the agent's hands directly.

Repeatable --cookie flag

App callbacks are often session-bound: the app pairs its state cookie with
the OAuth flow at initiate time and rejects the callback without it
(state_mismatch). Pass the app's site-state cookies through:

agentx oauth callback "<callback_url>" --cookie "fanszn_oauth=%7B..%7D" --cookie "fanszn_ref=FAN-KQ4Z"

Cookies are stored only for the callback request; they never touch X
credentials.

Verified E2E (fanszn / IPXExchange)

start → approve → callback --cookie <state jar>
  → sessionCookies: fanszn_session, fanszn_x_at, ...
  → GET /api/fanszn/me → success @kawinvrai authMode=oauth

Install (linux amd64)

curl -sL https://github.com/DezXBT/AgentX/releases/download/v021-release/agentx-linux-amd64 -o agentx
chmod +x agentx && sudo mv agentx /usr/local/bin/

sha256: ab27a8e41297750f0f631911d42dfef82343394b01143caf649d702d6051b110

Note: sites whose callback is bound to a FIRST-CLASS login flow (e.g.
quest.dogeos.com — SIWE wallet session + initiate/confirm endpoints) still
need that site session token; see signin-with-x skill, section
"Session-bound callbacks".