website/integrations/chat-communication-collaboration/joplin/index.md
Joplin is an open source note-taking app. Capture your thoughts and securely access them from any device.
Joplin Server is a self-hosted service that lets you sync notes between your devices.
The following placeholders are used in this guide:
joplin.company is the FQDN of the Joplin installation.authentik.company is the FQDN of the authentik 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 Joplin with authentik, you need to create property mappings and an application/provider pair in authentik.
displayNamereturn request.user.name
emailreturn request.user.email
https://joplin.company/api/saml.authentik.Post.To configure Joplin with authentik, create two SAML configuration files and set the appropriate environment variables.
entityID should match the slug value from the authentik application./path/to/joplin-sp.xml (replace /path/to/ with the actual directory path where Joplin can read files, such as /opt/joplin/config/ or a mounted volume in your Docker setup) with the following contents:<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="joplin">
<md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://joplin.company/api/saml"
index="1" />
</md:SPSSODescriptor>
</md:EntityDescriptor>
/path/to/joplin-idp.xml (use the same directory as above)./path/to/ with the actual file paths where you saved the configuration files:SAML_ENABLED="true"
SAML_IDP_CONFIG_FILE=/path/to/joplin-idp.xml
SAML_SP_CONFIG_FILE=/path/to/joplin-sp.xml
APP_BASE_URL=https://joplin.company
API_BASE_URL=https://joplin.company
DELETE_EXPIRED_SESSIONS_SCHEDULE=""
# Optional: Disable local authentication to require SAML login
LOCAL_AUTH_ENABLED="false"
To confirm that authentik is properly configured with Joplin Server, log out of Joplin and then attempt to sign in again. The login page should redirect you to authentik; after a successful authentik login you should be returned to Joplin with access to your notes.