MetriBeacon
Menu

GET Confirm a provider callback in the original browser

/api/v1/auth/oauth/{provider}/callback

The callback verifies browser binding, state, PKCE and provider identity. Tokens are not placed in the redirect URL. Existing mail accounts require explicit linking rather than automatic matching.

On this page

Access and permissions

The callback verifies browser binding, state, PKCE and provider identity. Tokens are not placed in the redirect URL. Existing mail accounts require explicit linking rather than automatic matching.

No account sign-in is required. Any listed browser-origin checks and rate limits still apply.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
providerPathstring; {"enum":["google","github"]}YesSupported login provider: google or github.
stateURL querystringNoOpaque OAuth anti-CSRF state generated by the client or login attempt. Preserve it unchanged through the callback.
codeURL querystringNoProvider-issued authorization code. Treat it as a secret and return it only to its registered callback.
errorURL querystringNoProvider callback error indicator; it does not authenticate an account.

Request body

No request body.

Responses

HeaderType and limitsMeaning
Cache-Controlstring; {"pattern":"(?:^|,\\s*)no-store(?:,|$)"}Private API responses prohibit storage. Public OAuth metadata is cached for 300 seconds; live streams additionally prohibit transformation.
Content-Languagestring; {"enum":["en","de"]}Language of human-readable response text, resolved from Accept-Language or the documented browser preference. Technical codes and identifiers remain stable.
LocationstringValidated local or registered redirect target.
Referrer-PolicyJSON; {"enum":["strict-origin-when-cross-origin","no-referrer"]}The default referrer policy is strict-origin-when-cross-origin. Provider-login responses use no-referrer to protect login parameters.
VarystringResponses vary by Accept-Language; browser-rendered responses can also vary by the preference cookie.
X-Content-Type-OptionsJSON; {"const":"nosniff"}The browser must use the declared content type.
X-Frame-OptionsJSON; {"const":"DENY"}The response must not be embedded in a frame.
X-Request-IDstringServer-generated request identifier. Include this when reporting an error; inbound values are not trusted.

Retries and asynchronous work

This operation reads or validates without applying a resource mutation. Respect rate limits and credential lifetime.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --silent --show-error --output /dev/null --write-out "%{http_code}\n" \
  --request GET \
  "https://metribeacon.com/api/v1/auth/oauth/google/callback"
python
import json
from pathlib import Path
from urllib.request import Request, HTTPRedirectHandler, build_opener
from urllib.error import HTTPError

headers = {}
request = Request("https://metribeacon.com/api/v1/auth/oauth/google/callback", data=None, headers=headers, method="GET")
class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, request, fp, code, message, headers, target):
        return None

opener = build_opener(NoRedirect())
try:
    with opener.open(request, timeout=10) as response:
        print(response.status)
except HTTPError as error:
    print(error.code)
    error.close()
javascript
import { readFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";

const headers = {};
const response = await fetch("https://metribeacon.com/api/v1/auth/oauth/google/callback", {
  method: "GET", headers, redirect: "manual",
  signal: AbortSignal.timeout(10000),
});
console.log(response.status);
await response.body?.cancel();
go
package main

import (
  "fmt"
  "net/http"
  "time"
)

func main() {
  request, err := http.NewRequest("GET", "https://metribeacon.com/api/v1/auth/oauth/google/callback", nil)
  if err != nil { panic("request failed; credentials and response omitted") }
  client := &http.Client{Timeout: 10*time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
  response, err := client.Do(request)
  if err != nil { panic("request failed; credentials and response omitted") }
  defer response.Body.Close()
  fmt.Println(response.StatusCode)
}
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • POST Start sign-in, registration or identity linking

    login, register and link have separate intent. Registration requires the gate and current legal acceptance. Linking requires a browser session and later a fresh action code. Browser cookie, state and PKCE bind the flow for ten minutes.

  • POST Request a code for one sensitive action

    Request a six-digit confirmation code for a sensitive account or workspace change. It lasts five minutes and allows five incorrect attempts. Use the same signed-in browser, action, target and parameters when confirming. A replacement requested after 60 seconds invalidates the previous code for that action. For your own account use link_identity, unlink_identity, add_passkey, remove_passkey or delete_self; workspace membership actions require owner permission. Do not use sign-in codes to confirm changes.

  • DELETE Cancel your pending action confirmation

    Only an outstanding confirmation belonging to the current account and session can be cancelled.