Connect and sign in

Dynamic client registration Details

Clients register at POST /api/oauth/register (RFC 7591). Registration is open, but codes only go to the known apps' published callbacks or to a loopback address.

View as Markdown

The request

POST https://xale.app/api/oauth/register, a JSON object of at most 16 KB.

json
{
  "client_name": "Example desktop client",
  "redirect_uris": ["http://127.0.0.1:33418/callback"],
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "token_endpoint_auth_method": "none"
}
FieldRule
redirect_urisRequired: 1 to 10, all belonging to one app
grant_typesOptional; only authorization_code and refresh_token
response_typesOptional; only code
client_nameOptional; cleaned to one line of at most 80 characters, and never shown as the app's verified name

The answer

201:

json
{
  "client_id": "…",
  "client_id_issued_at": 1796374800,
  "client_name": "Example desktop client",
  "redirect_uris": ["http://127.0.0.1:33418/callback"],
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "token_endpoint_auth_method": "none"
}

The client_id starts with xale_cl_. No secret is issued.

Accepted callback addresses

AppCallback
Claudehttps://claude.ai/api/mcp/auth_callback, https://claude.com/api/mcp/auth_callback
ChatGPThttps://chatgpt.com/connector_platform_oauth_redirect, https://chatgpt.com/connector/oauth/{id}
Grokhttps://grok.com/connectors-oauth-exchange-code or https://console.x.ai/connectors-oauth-exchange-code, with or without a trailing slash
Google (Gemini)https://oauth-redirect.googleusercontent.com/r/… or /a/… (Google's production relay)
An app on this computerhttp://127.0.0.1, http://localhost or http://[::1], any port and path

An https callback must have no port and no query. Every address must be written exactly as a URL parser would write it back: no user name or password, no fragment, nothing the parser had to repair.

Google's sandbox and test relays (oauth-redirect-sandbox.googleusercontent.com, oauth-redirect-test.googleusercontent.com) are dropped from a registration when every other address is Google's production relay. Beside anything else they are refused.

Refusals

All are 400 JSON with error and error_description:

errorerror_description
invalid_client_metadata“The registration must be JSON.” or “The registration must be a JSON object.”
invalid_redirect_uri“Give one to ten redirect_uris.”
invalid_redirect_uri“Xale connects to Claude, ChatGPT, Grok and Gemini through their published callback addresses, and to apps on this computer (loopback).”
invalid_redirect_uri“All redirect_uris of one registration must belong to the same app.”
invalid_redirect_uri“Google's sandbox and test relays are accepted only beside its production relay.”
invalid_client_metadata“Only the authorization_code and refresh_token grants are supported.” or “Only the code response type is supported.”
slow_down (429)“Too many registrations. Try again in an hour.”

Limits

LimitValue
A client that never got a tokenRemoved after 3 days
A client nobody has usedRemoved after 60 days
  • Checked against main 8aef9b15

Was this helpful?

dynamic-client-registration-details.md · main@c1725f34