Integrate with OneUptime
Support level: Community
What is OneUptime
OneUptime is an open-source observability and incident management platform that provides infrastructure monitoring, incident management, status pages, and APM.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.oneuptime.companyis the FQDN of your OneUptime 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.
Configuring SSO with OneUptime Cloud requires a Scale plan or higher. If you are self-hosting OneUptime, SSO is available on all instances at no cost.
Download the signing certificate from authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to System > Certificates.
- Select the certificate that you want to use for signing.
- Click Download to save the public certificate to your machine.
Create the initial SSO configuration in OneUptime
OneUptime currently supports the RSA-based SAML signature methods RSA-SHA1, RSA-SHA256, RSA-SHA384, and RSA-SHA512, plus the digest methods SHA1, SHA256, SHA384, and SHA512. It does not support ECDSA-based SAML signature methods.
- Log in to OneUptime as an administrator.
- Navigate to Project Settings > Authentication > SSO.
- Click Create SSO and configure the following settings:
- Name: enter a descriptive name, such as
authentik. - Sign On URL: temporarily set to
https://placeholder.invalid/sso. - Issuer: temporarily set to
https://placeholder.invalid/issuer. - Public Certificate: paste the certificate that you downloaded from authentik, including the
BEGIN CERTIFICATEandEND CERTIFICATElines. - Signature Method: select
RSA-SHA256. - Digest Method: select
SHA256.
- Name: enter a descriptive name, such as
- Save the configuration.
- Click View SSO Config on the new SSO entry.
- Note the following values:
- Identifier (Entity ID)
- Reply URL (Assertion Consumer Service URL)
Create an application and provider in authentik
To support the integration of OneUptime with authentik, you need an application/provider pair in authentik that uses the values provided by OneUptime.
- 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.)
- 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 you will use it when you return to OneUptime.
- 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:
- Set the ACS URL to the Reply URL (Assertion Consumer Service URL) from OneUptime.
- Set the Issuer to the Identifier (Entity ID) from OneUptime.
- Set the Service Provider Binding to
Post. - Under Advanced protocol settings:
- Set the Signing Certificate to the same certificate that you downloaded earlier.
- Set NameID Property Mapping to
authentik default SAML Mapping: Email.
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's My applications page.
- Click Submit to save the new application and provider.
OneUptime uses the SAML NameID as the user email address. Setting the authentik NameID Property Mapping to authentik default SAML Mapping: Email ensures that users can sign in successfully.
Complete the OneUptime configuration
- Return to Project Settings > Authentication > SSO in OneUptime.
- Open the SSO configuration that you created earlier.
- Replace the temporary values with the following settings:
- Sign On URL:
https://authentik.company/application/saml/<application_slug>/sso/binding/redirect/ - Issuer:
https://authentik.company/application/saml/<application_slug>/metadata/
- Sign On URL:
- Leave the Public Certificate, Signature Method, and Digest Method values unchanged.
- Save the configuration.
OneUptime does not currently support SAML role mapping. Configure user roles separately in OneUptime after users sign in.
Configuration verification
To confirm that authentik is properly configured with OneUptime, log out of OneUptime and open the login page in a private or incognito browser window. Start the SSO sign-in flow, enter an email address for a user who should have access, and confirm that you are redirected to authentik for authentication and then back to OneUptime.