btcintel

The provider's return

GET /v1/auth/oauth/{provider}/callback
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

Checks the state against the cookie (single use), exchanges the code with the PKCE verifier and verifies the ID token (issuer, audience, signature against the issuer's keys, nonce); GitHub, which issues none, is asked for the user and the verified addresses instead. Then: a provider identity bound to an account signs it in (a session at aal 1, amr [provider]; the cookie is set) and the browser lands on next; an unbound identity whose verified address has no account creates one and signs in; one whose verified address belongs to an account lands on /auth/provider?link=<token>&provider=<name> on the explorer, where the person confirms once (POST /v1/auth/oauth/confirm). Failures land on /auth/provider?error=<reason>&provider=<name>: state (no flow, expired, another browser), denied (the person stopped at the provider), provider (the exchange or the token failed), email_unverified (the provider does not vouch for an address), email_mismatch (a signed-in account asked for a link and the provider vouched for another address), bound (the identity is bound to another account). No token from the provider is stored.

Parámetros

NombreDóndeTipoObligatorioQué hace
providerrutastringobligatorioThe provider: google, github, apple or oidc. One this deployment does not configure is a 404.
codeconsultastringopcionalThe authorization code the provider sends back.
stateconsultastringopcionalThe flow's state, checked against the btci_oauth cookie of the browser that started it; single use.
errorconsultastringopcionalThe provider's reason when the person stopped there.

Qué responde

302

The browser lands on the explorer.

Cabeceras: Location, Set-Cookie

Errores

EstadoCódigoCuándo
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.
501not_configurednot_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

Sin fragmento. Esta ruta es un paso del inicio de sesión, que ocurre en tu navegador en btcintel.io, así que ningún fragmento puede ejecutarla desde una shell. Ver Identidad.