This document explains how to implement Monosign with Octelium, the open source, self-hosted zero trust access platform (WireGuard/QUIC based VPN and clientless access). It covers Single Sign-On with SAML 2.0, where Monosign acts as the Identity Provider (IdP) and Octelium as the Service Provider (SP). Before you continue, it is better to read the Octelium documentation (opens in a new tab). Octelium also supports OpenID Connect; see the Octelium OIDC Integration document.
This configuration was tested with Octelium v0.51.0 (single-node Cluster installed with the official installer, which uses K3s). If your version is different, please check the Octelium documentation.
Octelium has no setup page for identity providers: they are defined as resources of the type IdentityProvider with the octeliumctl command line tool. The Cluster needs its own domain name (for example octelium.example.com) with a wildcard DNS record and a TLS certificate. Octelium and Monosign can use both a SAML and an OIDC identity provider at the same time; the sign-in page shows one button for each.
Monofor has no responsibility to do Octelium configurations. If you need support please contact the Octelium community or your Octelium support provider.
Instructions
This documentation contains 6 main steps for integration.
Creating an application on Monosign
Creating the SAML key on Monosign
Configuring the SAML settings on Monosign
Assign a user to the Octelium application
Configuration Single Sign-On for Octelium
Sign In Test
1- Creating an Application on Monosign
Create your application on Monosign first. Open the Applications page from the left menu and click Add New.
Octelium is not in the application catalog, so click Create from scratch.
Fill in the application details on the Application tab and click Next.
Property | Value | Description |
|---|---|---|
Name |
| Name of the application shown to users on the Monosign portal and on the Monosign sign-in page. |
Type |
| Options: Web, Mobile, Desktop, API. |
Url | Optional | Leave empty or enter the address of Octelium (for example |
Logo | Optional | Browse and upload a logo (PNG or JPG, max 1 MB); it is also shown on the Monosign sign-in page. |
On the Access tab keep the defaults (System Default) and click Create Application.
If you already created the Octelium application for the OIDC integration, use the same application and continue with the next step. One application can have an OIDC/OpenID key and a SAML key at the same time.
2- Creating the SAML Key on Monosign
After the application is created, click Keys and add a new Access Key.
Select SAML as the key type and click Create. Monosign generates the key and the SAML endpoints automatically.
The created key shows the Entity Id of Monosign, the Sign On Service address and the Metadata address. Octelium reads everything it needs from the Metadata address (for example https://<monosign-host>/saml/<key>/metadata).
3- Configuring the SAML Settings on Monosign
Click the Configure button of the SAML key and open the SAML Settings tab. On the Configuration tab enter the Assertion Consumer Url, Audience and Entity Id values below and press Update. The other fields keep their default values.
Property | Value | Description |
|---|---|---|
Assertion Consumer Url |
| The address where Monosign sends the SAML response after sign-in. |
Audience |
| The Entity ID of Octelium (Service Provider). By default it is |
Entity Id |
| Same value as Audience. |
ACS Validation Mode |
| Monosign rejects requests with an ACS address that is not registered. Use the exact address above. |
Octelium identifies the user with an attribute that contains the e-mail address. By default it expects the attribute http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. Open the Attribute Mapping tab, type the attribute in the Attribute field and the value in the Value field, add them with the + button and press Update. The tab shows a check mark when a mapping is defined.
Attribute | Value |
|---|---|
|
|
4- Assign a User to the Octelium Application
Open the application in Monosign, click the Assignments tab and click Assign a User.
Search and select the users who can sign in to Octelium, check the Expiration Date and save. Every user needs an e-mail address in Monosign.
5- Configuration Single Sign-On for Octelium
As we mentioned at the start, please check out the Octelium documentation first. The following commands are run with octeliumctl by an administrator who is logged in to the Cluster (for example octelium login --domain <octelium-address> --auth-token <token> and export OCTELIUM_DOMAIN=<octelium-address>).
Create the identity provider. Save the following file as monosign-saml-idp.yaml and apply it with octeliumctl apply monosign-saml-idp.yaml.
kind: IdentityProvider
metadata:
name: monosign-saml
spec:
displayName: Monosign SAML
saml:
metadataURL: https://<monosign-host>/saml/<key>/metadata
Field | Value | Description |
|---|---|---|
displayName |
| Shown on the sign-in button (Continue with Monosign SAML). |
saml.metadataURL |
| Metadata address of the Monosign SAML key (step 2). Octelium reads the sign-on address and the signing certificate from it. |
saml.entityID | Not set | The default is |
saml.identifierAttribute | Not set | The default is the e-mail address claim |
Octelium matches the user that signs in with the e-mail address of an Octelium User. Create an Octelium user for each Monosign user that is allowed to sign in. The e-mail address must be the same as in Monosign.
kind: User metadata: name: john-mono spec: type: HUMAN email: [email protected]
Apply it with octeliumctl apply john-user.yaml. The identity providers can be checked with octeliumctl get idp.
6- Sign In Test
Open a new browser window (or a private window) and type the address of the Octelium Cluster (https://<octelium-address>). When both identity providers are defined, the sign-in page shows two buttons: Continue with Monosign (OIDC) and Continue with Monosign SAML. Use the SAML button for this integration.
Click Continue with Monosign SAML.
On the Monosign sign-in page log in passwordless with your QR code (Monofor Identity), with a Passkey or with your user name and password. If you are already signed in to Monosign, the page is skipped.
Monosign sends the SAML response to Octelium (
/callback) and the Octelium Portal opens with the Services that are available to the user.
Troubleshooting
Symptom | Cause | Solution |
|---|---|---|
The Continue with Monosign SAML button is not shown | The identity provider was not created or Octelium could not read the metadata. | Check |
Monosign rejects the request (ACS or audience error) | The Assertion Consumer Url or the Audience does not exactly match Octelium. | Use |
The user comes back to the Octelium sign-in page | There is no Octelium user with the e-mail address of the signed-in user, or the e-mail attribute is missing in the response. | Create the Octelium user (step 5) and check the Attribute Mapping (step 3). |
A user cannot sign in | The user is not assigned to the application. | Assign the user in step 4. |
After completing the configuration on Octelium and Monosign, it is better to test in a new private browser window if the SAML SSO doesn’t work, because old session cookies may cause errors.








