The address
401, and the response names where the client reads how to get one.
How the client signs in
The client does the following on its own; you only see the last step.- Discovery. The client reads the server’s metadata: the protected-resource document (at
/.well-known/oauth-protected-resource/mcp, and also at/.well-known/oauth-protected-resource) names the authorization server, and the authorization-server document (/.well-known/oauth-authorization-server) lists its authorization, token and registration endpoints. - Registration. The client registers itself with dynamic client registration (RFC 7591) at
/oauth/register. It is a public client: it has no client secret, so the token endpoint authenticates it withnone. - Authorization with PKCE. The client sends the person to
/oauth/authorizewith a PKCE challenge. OnlyS256is accepted. - Consent. The person signs in to xcale and approves. Only an Admin of a business can approve; see Access.
- Token. The client exchanges the code for tokens at
/oauth/tokenwith its PKCE verifier. The grant types areauthorization_codeandrefresh_token. An access token lasts 15 minutes and the client renews it with its refresh token.
No scopes to choose
There are no scopes for the person or the client to choose. The server advertises a single scope,offline_access, and ignores any scope a client sends to /oauth/authorize. What the connected app can do does not depend on a scope: it acts as the Admin who approved, through the tools in the tool reference.