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). Octelium supports external identity providers through OpenID Connect (OIDC) and SAML 2.0. This document covers OIDC. Octelium uses the Authorization Code flow, so the OIDC/OpenID access key of Monosign is used. Before you continue, it is better to read the Octelium documentation (opens in a new tab).
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 (*.octelium.example.com) and a TLS certificate for both names.
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 5 main steps for integration.
Creating an application on Monosign
Configuring the OIDC/OpenID 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. |
Users can see this application on their list |
| Displays the application on the user portal. |
On the Access tab keep the defaults (System Default) and click Create Application.
After the application is created, click Keys and add a new Access Key for OIDC/OpenID access.
Select OIDC/OpenID as the key type and click Create. Monosign generates the Client Id and Client Secret automatically.
The created key shows the values that are needed in Octelium:
Monosign value | Example | Used in Octelium as |
|---|---|---|
Client Id |
|
|
Client Secret |
| Octelium Secret, referenced by |
Issuer |
|
|
2- Configuring the OIDC/OpenID Settings on Monosign
Open the Keys tab of the application and click the Configure button of the OpenID Connect (OIDC) key.
Open the OIDC/OpenID Settings tab, enter the scopes in the Scope field (press Enter after each scope), add the callback address of Octelium to Allowed Redirect URIs and press Update.
Property | Value | Description |
|---|---|---|
Allowed Redirect URIs |
| The address where Monosign sends the user back after sign-in. |
Scope |
| Enter the three scopes one by one. |
Other fields | Empty / default | The other fields are not needed. |
3- 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. You can select more than one user. Every user needs an e-mail address in Monosign.
The assigned users are listed on the Assignments tab.
4- 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>).
First, save the Client Secret of Monosign as an Octelium Secret:
octeliumctl create secret monosign-client-secret --value '<client-secret>'
Then create the identity provider. Save the following file as monosign-idp.yaml and apply it with octeliumctl apply monosign-idp.yaml.
kind: IdentityProvider
metadata:
name: monosign
spec:
displayName: Monosign
oidc:
issuerURL: https://<monosign-host>/
clientID: <client-id>
clientSecret:
fromSecret: monosign-client-secret
Field | Value | Description |
|---|---|---|
displayName |
| Shown on the sign-in button (Continue with Monosign). |
issuerURL |
| Address of Monosign with the slash at the end. Octelium reads the OIDC configuration from it automatically. |
clientID | Client Id | Copied from the Monosign OIDC/OpenID access key created in the first step. |
clientSecret.fromSecret |
| Name of the Octelium Secret that holds the Client Secret. |
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 provider can be checked with octeliumctl get idp.
The default scopes of Octelium are openid, profile and email. Octelium does not require the email_verified claim unless checkEmailVerified is set. What a user can reach after signing in is decided by the Octelium policies and the authorization of the user; the sign-in itself does not give access to any Service.
5- Sign In Test
Open a new browser window (or a private window) and type the address of the Octelium Cluster (https://<octelium-address>). The sign-in page shows the Continue with Monosign button.
Click Continue with Monosign.
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 redirects the browser back 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 button is not shown | The identity provider was not created. | Check |
Monosign shows a redirect URI error | The callback address does not exactly match the Allowed Redirect URIs. | Use |
An error appears after returning from Monosign | Wrong Client Id or Client Secret, or the issuer has no slash at the end. | Check the values (steps 1 and 4). |
The user cannot sign in | The user is not assigned to the application in Monosign or has no Octelium user with the same e-mail address. | Assign the user in step 3 and create the Octelium user (step 4). |
After completing the configuration on Octelium and Monosign, it is better to test in a new private browser window if the OIDC SSO doesn’t work, because old session cookies may cause errors.













