Integrate with Convex
Support level: Community
What is Convex?
Convex provides backend building blocks for applications, including TypeScript server functions, realtime data updates, authentication, and a database.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.example.companyis the email domain that you verify in Convex.
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.
Single Sign-On is only available on Convex Business and Enterprise. Convex also requires domain verification before SSO can be configured. Domain verification is outside the scope of this integration guide.
authentik configuration
To support the integration of Convex with authentik, you need to create an application/provider pair in authentik.
Create an application and provider in authentik
authentik 2026.5 introduces changes to how the SAML provider behaves. Specifically, the provider now automatically sets the Issuer value to: https://authentik.company/application/saml/<application_slug>/metadata/
Older versions of authentik set this value to authentik by default. If you're running an older version, please set Issuer to https://authentik.company/application/saml/<application_slug>/metadata/, where <application_slug> is the slug that you selected for the application.
-
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.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because it is required later.
- Choose a Provider type: select SAML Provider 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.
- Temporarily set the ACS URL and Audience to
https://temp.temp. - Under Advanced protocol settings:
- Select an available Signing Certificate.
- Set NameID Property Mapping to
authentik default SAML Mapping: Email.
- Temporarily set the ACS URL and Audience to
- 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.
Download the signing certificate
- Navigate to Applications > Providers and click the name of the SAML provider that you created.
- Under Related objects > Download signing certificate, click Download. This certificate file is required in the Convex SSO setup flow.
Convex configuration
- Log in to the Convex dashboard as a team administrator.
- On the project list page, click Team Settings.
- Select the Single Sign-On tab.
- Click Enable SSO.
- Click Manage Domains and complete the domain verification flow for
example.company. - Return to the Convex Single Sign-On settings page and click Manage SSO Configuration.
- Follow the Convex SSO configuration wizard until Convex shows the service provider values. Copy these values because they are required in the next section:
- ACS URL
- SP Entity ID or Audience
- When Convex asks for identity provider details, set the following values:
- Identity Provider SSO URL:
https://authentik.company/application/saml/<application_slug>/ - Identity Provider Entity ID:
https://authentik.company/application/saml/<application_slug>/metadata/ - Public certificate: upload or paste the signing certificate that you downloaded from authentik.
- Identity Provider SSO URL:
- Keep the Convex setup flow open.
Configure the remaining information in authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and open the provider that you created earlier.
- Under Protocol settings, set the following values:
- ACS URL: the ACS URL value from Convex.
- Audience: the SP Entity ID or Audience value from Convex.
- Click Update to save the provider.
Enable SSO in Convex
- Return to the Convex SSO configuration wizard and finish the SSO setup.
- To require SSO for all members of the Convex team, return to the Single Sign-On settings page and enable Require SSO.
Configuration verification
To confirm that authentik is properly configured with Convex, log out of Convex and sign in with an email address from the verified SSO domain. You should be redirected to authentik and, after authenticating, returned to Convex.