OIDC mode requires an
https:// URL for your plamotrack instance. You need a TLS-terminating proxy (like Caddy) or a Cloudflare Tunnel in front of the stack. See Deployment if you need to set that up first.Choose your provider
Any provider that publishes a discovery document at<issuer>/.well-known/openid-configuration works. Three common examples:
- Google — issuer:
https://accounts.google.com - Keycloak — issuer:
https://keycloak.example/realms/your-realm - Authentik — issuer:
https://authentik.example/application/o/plamotrack/
Register a client with your provider
Create an OAuth/OIDC client (also called an “application”) in your provider’s dashboard. Configure it with these two redirect URIs:- Browser login:
<PUBLIC_BASE_URL>/api/auth/oidc/callback - MCP clients (Claude web, ChatGPT web):
<PUBLIC_BASE_URL>/mcp/auth/callback
Update .env
Add the following to your.env file, then restart the stack:
Claim the instance in OIDC mode
The API still prints a one-time setup token to its log on first start, just like a fresh install. Open the app, enter the token when prompted, and plamotrack will redirect you to your identity provider. The account you sign in with at the provider becomes the owner of the instance. No password is set. If you miss the token or need a fresh one, restart the API container:Switching from password to OIDC
It is safe to switch an existing instance from password to OIDC. Your entire collection is untouched. On the first start in the new mode, the API signs every active browser session out and records the change in the audit log. The first sign-in at the provider with the new setup token binds that account as the owner — the old password is then ignored. Switching back to password mode (AUTH_MODE=local) works the same way in reverse: everyone is signed out, and you set a new password during the re-claim step.
Lost access to your provider account?
If you lose access to the identity provider account bound to your instance — or you want to switch to a different provider entirely — run this from the host machine:If your identity provider is temporarily unavailable, existing browser sessions and personal access tokens keep working normally. New sign-ins will fail with a clear error message until the provider comes back online. plamotrack never falls back to password mode on its own.