Skip to content

Callback URLs

This reference is for operators registering provider and identity callback URLs.

ProviderLocal callbackProduction callback
Xhttp://localhost:8080/api/v1/accounts/x/callbackhttps://your-domain.com/api/v1/accounts/x/callback
Mastodonurn:ietf:wg:oauth:2.0:oob by defaulturn:ietf:wg:oauth:2.0:oob by default
LinkedInhttp://localhost:8080/api/v1/accounts/linkedin/callbackhttps://your-domain.com/api/v1/accounts/linkedin/callback
Threadshttp://localhost:8080/api/v1/accounts/threads/callbackhttps://your-domain.com/api/v1/accounts/threads/callback
Facebookhttp://localhost:8080/api/v1/accounts/facebook/callbackhttps://your-domain.com/api/v1/accounts/facebook/callback
Instagramhttp://localhost:8080/api/v1/accounts/instagram/callbackhttps://your-domain.com/api/v1/accounts/instagram/callback
TikTokhttp://localhost:8080/api/v1/accounts/tiktok/callbackhttps://your-domain.com/api/v1/accounts/tiktok/callback
YouTubehttp://localhost:8080/api/v1/accounts/youtube/callbackhttps://your-domain.com/api/v1/accounts/youtube/callback
Google loginhttp://localhost:8080/api/v1/auth/oidc/google/callbackhttps://your-domain.com/api/v1/auth/oidc/google/callback
Instance OIDChttp://localhost:8080/api/v1/auth/oidc/instance/callbackhttps://your-domain.com/api/v1/auth/oidc/instance/callback

Mastodon uses the OOB flow by default and exchanges the pasted authorization code through /api/v1/accounts/mastodon/exchange. Only configure a normal Mastodon callback URL if you also override MASTODON_REDIRECT_URI.

Organization OIDC providers use a provider-specific callback and back-channel logout URL. Open Settings → Single sign-on and copy both URLs from the saved provider. Register only those exact URLs with the identity provider.

Google login uses OpenID Connect with PKCE and the stable Google subject as the external identity. OpenPost never links an existing user only because Google returns the same email. Sign in to the existing OpenPost account and link Google from Settings → Account → Security instead.

Open source under AGPL-3.0-only.