triauth for Paperless-ngxOIDC
Let your team open the document archive with one approval on their own device, and no Paperless-ngx passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Paperless-ngx 2.5 and newer
- Set up in
- Environment variables
About Paperless-ngx
Paperless-ngx is a document archive. You scan or upload paper, PDFs, and email attachments, and it reads the text, tags and files them, and makes everything searchable. Teams use it to keep invoices, contracts, and letters findable without paper folders.
Connect Paperless-ngx to triauth
Paperless-ngx signs people in through the triauth OpenID Connect bridge. Once connected, its sign-in page shows a button with your domain's name. People on your team click it, type their username, and approve on their own device. Nobody keeps a Paperless-ngx password, and when someone leaves, removing their identity records at your domain ends their access to the archive as well.
How it works
Open oidc.triauth.org and enter your domain. Paste the redirect address,
https://paperless.example.com/accounts/oidc/triauth/login/callback/with your own Paperless-ngx address in place ofpaperless.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to the environment of Paperless-ngx, for example in its
docker-compose.yml, and restart it. Replaceexample.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.yamlPAPERLESS_APPS: allauth.socialaccount.providers.openid_connect PAPERLESS_SOCIALACCOUNT_PROVIDERS: > {"openid_connect": {"SCOPE": ["openid", "profile", "email", "groups"], "APPS": [{"provider_id": "triauth", "name": "example.com", "client_id": "<client ID from the bridge>", "secret": "<client secret from the bridge>", "settings": {"server_url": "https://oidc.triauth.org/example.com"}}]}} PAPERLESS_SOCIAL_AUTO_SIGNUP: "true"Open the sign-in page and click the button with your domain's name.
Checkpoint
The sign-in page shows a new button with your domain's name. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.
Good to know
- Everyone with an identity at your domain gets an account the first time they sign in. To let only one team in, limit the app to a group when you connect it.
- People who already have an account sign in with their password once, open My Profile, and connect the new sign-in there.
- With group sync turned on, Paperless-ngx puts people into its groups by the groups published at your domain. The groups must exist in Paperless-ngx under the same names.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-paperless>/accounts/oidc/<provider_id>/login/callback/, with the trailing slash. The provider ID is triauth above |
| Where in Paperless-ngx | the environment, such as the environment block of docker-compose.yml or docker-compose.env |
| Issuer | server_url takes https://oidc.triauth.org/<your domain>, and the rest comes from the discovery document |
| Groups | PAPERLESS_SOCIAL_ACCOUNT_SYNC_GROUPS=true, with groups in the scope list as above |
| Passwords | PAPERLESS_DISABLE_REGULAR_LOGIN=true and PAPERLESS_REDIRECT_LOGIN_TO_SSO=true once everyone is over |
Paperless-ngx keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Paperless-ngx's authentication guide and its configuration reference explain every setting.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish teams and sync them into Paperless-ngx.
- Read Paperless-ngx's authentication guide for every setting it offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.