Skip to content

Social Auth & OIDC ​

Let people sign in to AdventureLog with an account they already have, from GitHub or from a self-hosted identity provider such as Authentik, Pocket ID, or Authelia. Users can also link one of these accounts to their existing AdventureLog account.

Who sets it up: the server admin, in the identity provider and in the AdventureLog admin panel.

Providers ​

ProviderTypeGuide
AuthentikSelf-hosted OpenID ConnectAuthentik
Pocket IDSelf-hosted OpenID ConnectPocket ID
AutheliaSelf-hosted OpenID ConnectAuthelia's guide
Any other OpenID Connect providerOpenID ConnectOpenID Connect
GitHubOAuthGitHub

How setup works ​

Every provider follows the same three steps. The provider guides fill in the details.

  1. Create a client in the provider, with AdventureLog's callback URL as the redirect URL. The callback URL is on your backend's public address: your SITE_URL on Standard Deployment, or PUBLIC_URL on Advanced Deployment.
  2. Add a social application in AdventureLog. Open the Admin Panel, go to Social Accounts → Social applications, and choose Add. Enter the client ID and secret from the provider.
  3. Choose the site. Under Sites, move your site (usually example.com) to the chosen list, and save.

The provider then appears on the AdventureLog login page.

On Advanced Deployment behind a reverse proxy, the /accounts path must reach the backend, or the callback returns 404.

Sign-in settings ​

VariableDefaultDescription
SOCIALACCOUNT_ALLOW_SIGNUPFalseLet new people create an account through a provider, even when DISABLE_REGISTRATION=True
FORCE_SOCIALACCOUNT_LOGINFalseTurn off password login, so everyone signs in through a provider

See Advanced Settings for the others.

Linking an existing account ​

A user who already has an AdventureLog account signs in as usual, opens Settings → Security, and chooses Launch Account Connections under Sign-in Methods. The providers set up on the server are listed there to link.

Mobile app ​

The mobile app signs in through the same providers using the system browser, and the server hands the app a one-time code afterward. Nothing needs to be added to your identity provider: it only ever sees the usual AdventureLog login. The app's redirect address (adventurelog://auth/callback) is checked by AdventureLog itself, not by the provider.