Integrate with Wekan
Support level: Community
What is Wekan?
Wekan is an open-source Kanban board application for organizing tasks with boards, lists, and cards.
Preparation
The following placeholders are used in this guide:
wekan.companyis the FQDN of the Wekan installation.authentik.companyis the FQDN of the authentik installation.
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.
authentik configuration
In authentik versions earlier than 2026.5, all Redirect URIs are automatically treated as Authorization type. If you are using one of these older authentik versions, add only the Authorization URL to your Redirect URIs and do not configure a Post Logout URI.
To support the integration of Wekan with authentik, you need to create an application/provider pair in authentik. If you want Wekan administrator access to be managed from authentik, also create a custom scope mapping.
Create a scope mapping (optional)
Wekan can promote users to Wekan administrators from OIDC group names. This mapping sends application entitlements from authentik as Wekan-specific OIDC group values.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property mappings and click Create.
- Select type: select Scope Mapping.
- Create Scope Mapping:
-
Name:
Wekan groups -
Scope name:
wekan -
Expression:
wekan_groups = [{"displayName": entitlement.name}for entitlement in request.user.app_entitlements(provider.application)]return {"wekanGroups": wekan_groups,}
-
-
Click Finish.
Create an application and provider
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application 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.)
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Choose a Provider type: select OAuth2/OpenID Connect as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Note the Client ID and Client Secret values because they will be required later.
- Add a Redirect URI of type
StrictAuthorizationashttps://wekan.company/_oauth/oidc. - Select any available signing key.
- If you created the
Wekan groupsscope mapping, add it to Selected Scopes under Advanced protocol settings.
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Submit to save the new application and provider.
If you created the Wekan groups scope mapping, open the new application, click the Application entitlements tab, and create the entitlements that Wekan should receive as OIDC group names. Bind the appropriate users or groups to each entitlement.
Wekan configuration
Add the following required environment variables to your Wekan deployment:
OAUTH2_ENABLED=true
OAUTH2_CLIENT_ID=<Client ID from authentik>
OAUTH2_SECRET=<Client Secret from authentik>
OAUTH2_SERVER_URL=https://authentik.company
OAUTH2_AUTH_ENDPOINT=/application/o/authorize/
OAUTH2_USERINFO_ENDPOINT=/application/o/userinfo/
OAUTH2_TOKEN_ENDPOINT=/application/o/token/
OAUTH2_ID_MAP=sub
OAUTH2_USERNAME_MAP=preferred_username
OAUTH2_FULLNAME_MAP=name
OAUTH2_EMAIL_MAP=email
For Snap deployments, use Wekan's lower-case, dash-separated equivalents for these settings.
If you created the Wekan groups scope mapping, add the custom scope to Wekan's requested permissions and list the entitlement names that should grant Wekan administrator access:
OAUTH2_REQUEST_PERMISSIONS=openid profile email wekan
OAUTH2_ADMIN_GROUPS=wekan-admin
Restart Wekan after applying the environment variable changes.
Configuration verification
To verify the integration with Wekan, open Wekan, log out if necessary, and log in using the OIDC login button. You should be redirected to authentik and then returned to Wekan.