Paperless-ngx
Sign in to the Paperless-ngx document manager with Pocket ID.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Paperless-ngxand add the callback URLhttps://paperless-ngx.example.com/accounts/oidc/pocket-id/login/callback/. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Paperless-ngx
Section titled “Configure Paperless-ngx”-
Add the following environment variables to the Paperless-ngx webserver container. See the Paperless-ngx documentation for more information.
PAPERLESS_APPS=allauth.socialaccount.providers.openid_connectPAPERLESS_SOCIALACCOUNT_PROVIDERS={"openid_connect":{"SCOPE":["openid","profile","email"],"OAUTH_PKCE_ENABLED":true,"APPS":[{"provider_id":"pocket-id","name":"Pocket ID","client_id":"<client-id>","secret":"<client-secret>","settings":{"server_url":"https://id.example.com"}}]}}The
provider_idvalue (herepocket-id) must match the one in the callback URL in Pocket ID. -
Restart your Docker containers.
-
Sign in to Paperless-ngx with Pocket ID to test it.
Link an existing account
Section titled “Link an existing account”To link your existing Paperless-ngx user to the user in Pocket ID:
- Sign in to Paperless-ngx with password authentication.
- Click your user name in the top right corner and click My Profile.
- Link the account to Pocket ID with the Connect new social account option.