Authorization server metadata
Any MCP client can discover Along’s OAuth endpoints by fetching the well-known metadata document:Scopes
OAuth flow
1
Discovery
The MCP client fetches
/.well-known/oauth-authorization-server to discover the authorization and token endpoints. This step is automatic for clients like Claude and ChatGPT.2
Authorization request
The client redirects you to
GET /oauth/authorize with the following parameters:Example authorization URL:
3
User consent
Along redirects you to the Along app consent page. Log in with your Along account and optionally select a Safe to associate with this connection. Once you approve, Along returns an authorization
code to the redirect_uri.The authorization code expires in 10 minutes.4
Token exchange
The client sends the authorization code to the token endpoint to receive access and refresh tokens:Response:
5
Using the token
Include the access token as a Bearer token in all MCP requests:
Token lifetimes
Refreshing tokens
When an access token expires, the client exchanges the refresh token for a new access token and refresh token pair:access_token and refresh_token values. The old refresh token is revoked immediately after use.
Client registration
For custom integrations that aren’t Claude or ChatGPT, register your client before starting the OAuth flow:client_id in all subsequent authorization requests.
Claude and ChatGPT auto-register as clients when they initiate the OAuth flow — you don’t need to pre-register for those integrations.
