EddytorDocs & API
Authentication

OAuth provider redirect callback.

Called by the IdP (Azure AAD, Google) after the user consents at their authorize URL. Consumes the one-time `state`, exchanges the `code` for tokens (persisting the refresh token to the vault + cache), then upserts `user_provider_identity_linking` with the IdP subject claim. Response body depends on whether the state row had a `return_to`: - Set: 302 to that URL with `?status=success` (used by CLI static page). - Unset: 200 with HTML that `postMessage`s the popup opener and closes.

GET
/v1/auth/providers/{provider}/callback

Path Parameters

provider*string

Value in

  • "azure"
  • "gitHub"
  • "google"

Query Parameters

code?string
state?string
error?string
error_description?string

Response Body

text/html

text/html

curl -X GET "https://example.com/v1/auth/providers/azure/callback"
"string"
Empty
"string"