Skip to main content

Module oauth

Module oauth 

Source
Expand description

The service-OAuth RPCs (account.oauth.start, .poll, .cancel, .client.get, .client.clear), moved out of identity::register unchanged as named functions.

Functions§

cancel_oauth 🔒
clear_oauth_client 🔒
Forgets the user’s saved OAuth client for a provider.
cloud_signed_in 🔒
GitHub connects through the broker when signed in to AgentMux Cloud.
flow_target 🔒
A new account, or the existing one the request names.
oauth_client_info 🔒
The user’s own OAuth client saved for a provider (D8): whether there is one. Accounts made with it keep refreshing: each keeps its own copy of what a refresh needs.
poll_oauth 🔒
The response stays Value: oauth_status_wire builds it, and the frontend models it as OAuthFlowStatus (generated-manifest.json returns).
saved_client 🔒
The user’s saved client, when none came with the request. A keychain that can’t be read means none: the panel asks again.
start_failed 🔒
start_oauth 🔒
Resolve config and client (gating on “not configured”), spawn the flow, return the session id and its first status. Poll and cancel drive the rest. With accountId it authorizes that account again (more scopes, or a reconnect) instead of creating one: spec G0 of docs/specs/SPEC_GOOGLE_CONNECTORS_GMAIL_CALENDAR_DRIVE_2026_10_14.md.