website/integrations/documentation/papra/index.mdx
An open-source document management platform designed to help you organize, secure, and archive your files effortlessly.
The following placeholders are used in this guide:
authentik.company is the FQDN of the authentik installation.papra.company is the FQDN of the Papra installation.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
To support the integration of Papra with authentik, you need to create an application/provider pair in authentik.
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
Strict redirect URI to https://papra.company/api/auth/oauth2/callback/authentik.Click Submit to save the new application and provider.
To support the integration of Papra with authentik, you'll need to add the following environment variable to your Papra deployment:
AUTH_PROVIDERS_CUSTOMS=[{"providerId": "authentik","providerName": "authentik","providerIconUrl": "https://authentik.company/static/dist/assets/icons/icon.png","clientId": "<client_id>","clientSecret": "<client_secret>","type": "oidc","discoveryUrl": "https://authentik.company/application/o/<application_slug>/.well-known/openid-configuration","scopes": ["openid", "profile", "email"]}]
:::info
The JSON needs to be inline (single line) because various .env parsers, such as the one used by Docker Compose, do not support multiline environment variables.
:::
To verify the integration with Papra, log out and attempt to log back in using the Log in with authentik button. You should be redirected to the authentik login page. Once authenticated, you should be redirected to the Papra dashboard.