FOR DEVELOPERS
Connect your
next service.
Give your app a ready-made sign-in flow. Register your app, add the address people return to, then connect these endpoints.
Start here
- Register your app in the developer portal to get a dedicated OAuth client.
- Add your callback URL. This is the page people return to after sign-in.
- Keep your client secret on your server and use the configuration below.
- Add your logo and colors, then test sign-in and sign-out.
Endpoints
Authorization https://oauthprovider.com/oauth/authorize Token https://oauthprovider.com/oauth/token User info https://oauthprovider.com/oauth/userinfo Revocation https://oauthprovider.com/oauth/revoke
Use authorization code with S256 PKCE, a random state value, and an exact registered callback URL. Keep the client secret and token exchange on your server. Machine clients use the client_credentials grant and their registered resource audience.
Next.js service configuration
TCM_OAUTH_WEB_URL=https://oauthprovider.com TCM_OAUTH_API_URL=https://oauthprovider.com TCM_OAUTH_CLIENT_ID=your-dedicated-client-id TCM_OAUTH_CLIENT_SECRET=your-server-only-secret
Choose your sign-in options
One integration covers our supported sign-in providers. Open your app in the developer portal and choose its allowed providers. Enable one option or several: Google, Discord, Steam, Twitch, Battle.net, or email and password. Apple is coming soon.
You do not need a separate OAuthProvider integration for each provider. The sign-in page shows only providers allowed for your app and available on OAuthProvider. Hide an option by removing it from that app's allowed providers; keep at least one enabled.
Your brand, your sign-in
Sign-in uses a neutral white and grey theme by default. Your registered application name and logo identify your application. To add your own button color, page background and logo, send a branding configuration from your server using your client credentials:
POST https://oauthprovider.com/oauth/branding
Authorization: Basic base64(client_id:client_secret)
Content-Type: application/json
{
"primaryColor": "#4f46e5",
"backgroundColor": "#f8f7ff",
"logoUrl": "https://your-company.example/logo.png"
}Use six-digit hex colors and a publicly hosted HTTPS image URL, preferably a transparent PNG or SVG. Button text automatically switches between black and white for readability. The logo is displayed within a 160 by 56 pixel area; use a wider source image for a sharp result on high-resolution screens.
Once saved, your existing authorization URL automatically uses this branding on sign-in, consent, registration and recovery pages. Use GET /oauth/branding with the same credentials to read it back. Each POST replaces the configuration: omit a color to restore its neutral default, omit the logo to use the registered client logo, or set logoUrl to null to hide it. Send an empty JSON object to restore all defaults.
Configure branding from your backend, without browser cookies or an Origin header. Keep the client secret on your server. Colors and logos supplied in the authorization query string are ignored; branding belongs to the registered client.
Existing integrations
Existing Crimson Market OAuth URLs continue to work. This service uses the same client registrations, accounts, codes, tokens, refresh tokens, scopes, and audiences. Sign-in, consent and token issuance run independently on OAuthProvider.
This is OAuth 2.0, not OpenID Connect: no ID token or JWKS is advertised. The discovery issuer identifies these endpoints; it does not add an issuer claim to existing access tokens. Validate user tokens with the user info endpoint and retain your existing resource-server audience and scope checks.
Sign out of your application by clearing its local session and revoking its tokens. To clear the OAuthProvider browser session too, navigate the browser to /oauth/logout. The legacy site has its own browser session; your first visit here requires signing in again.