Single sign-on and tool access
Accounts signed in to the Axiom portal open the companion tools (CyberChef, Uptime Kuma, Portainer) and the admin console without signing in again. Which tools an account may open is set per account on the admin page, under People → Users.
How it works
Every sign-in goes through the Axiom server, so two-factor sign-in and the lockout rules apply once, at the portal. After that the browser holds the portal's session, and each tool trusts it in one of three ways:
| Tool | How it signs you in | What you set up |
|---|---|---|
| Admin console | Uses the portal session directly | Nothing |
| CyberChef | The gateway admits the session; the tool has no login of its own | Nothing |
| Uptime Kuma | The gateway admits the session; Kuma's own login is turned off | Turn off Kuma's login once |
| Portainer | Portainer signs in through the Axiom server with OAuth 2.0 | Register Portainer once |
Signing out of the portal (or of the admin console when it was opened from the portal) ends that session everywhere it is used. Portainer keeps its own session for as long as Portainer allows; removing an account's access stops new Portainer sign-ins at once.
Tool access per account
On the admin page, the People → Users table has a Tool access column with a box for each tool. A tick lets the account through the gateway to that tool and, for Portainer, sign in to it. Changes apply to the next request and are recorded in the audit log as tools_changed.
Accounts start on the defaults, shown as a default pill:
- Admins: CyberChef, Uptime Kuma and Portainer.
- Everyone else: CyberChef.
Tick or untick a box to give an account its own set; Use defaults puts it back. The admin console itself is not a tool grant: only admins can open it. The analyst portal shows each account only the tools it may open.
Warning: Portainer manages Docker on the server host, which is equivalent to full control of the host. Grant it only to people you would give root.
An account without access that opens a tool's address sees a short No access page with a link back to the portal. A disabled account opens nothing.
The admin console
Admins who are signed in to the portal open the admin console from the Axiom Admin tile, or at https://axiom.example.com/admin, and are signed in automatically. The console's own sign-in form still works for admins who go straight to it.
Uptime Kuma
Uptime Kuma can't delegate its login, so the gateway's check becomes the only sign-in:
- Open Uptime Kuma from the portal and sign in with its own admin account one last time.
- Go to Settings → Security and choose Disable Auth.
From then on anyone the gateway lets through (accounts with Uptime Kuma ticked) opens it directly. Kuma publishes no port of its own and shares its Docker network with the gateway alone, so the gateway is the only way in.
Know what that choice rests on:
- Any container added to Kuma's Docker network becomes a full, unauthenticated Kuma administrator. The standard layout keeps exactly Kuma and the gateway on that network; never attach anything else to it.
- Kuma stores the credentials for its notifications (the SMTP password, webhook addresses and tokens). Anyone who controls the gateway can reach Kuma as an administrator and read them, so give Kuma a send-only mail account and webhooks that can do nothing but post alerts.
- The stricter alternative is to keep Kuma's own login enabled. Deployments that want a second layer skip the Disable Auth step (or re-enable authentication under Settings → Security), set a strong Kuma-local password and keep it in the password manager. The gateway's access check stays in front either way; people then sign in twice, once at the portal and once in Kuma.
Portainer
Portainer Community Edition supports a custom OAuth provider, and the Axiom server is one.
Requirements
- The gateway serves a DNS name with a publicly trusted certificate (Let's Encrypt). Portainer checks the certificate when it redeems sign-in codes at
https://axiom.example.com/oauth/token. On an IP-only deployment, use Portainer's own login instead. - The gateway and Portainer share the
axiom-portainernetwork (the standard compose files do this). The gateway answers there under the site's DNS name, so Portainer's requests stay on the host.
Register Portainer on the Axiom server
- On the admin page, open Integrations → Single sign-on and find the Portainer card.
- Enter the Redirect URL: Portainer's address as browsers use it, normally
https://axiom.example.com:8444/. - Select Generate client secret and copy the secret. It is shown once; the server keeps only a hash of it.
- Tick single sign-on on and select Save.
The card lists every value Portainer needs, each with a Copy button.
Configure Portainer
In Portainer, go to Settings → Authentication, choose OAuth, then Custom, and enter:
| Portainer field | Value |
|---|---|
| Client ID | axiom-portainer |
| Client secret | the secret you copied |
| Authorization URL | https://axiom.example.com/oauth/authorize |
| Access token URL | https://axiom.example.com/oauth/token |
| Resource URL | https://axiom.example.com/oauth/userinfo |
| Redirect URL | https://axiom.example.com:8444/ |
| Logout URL | https://axiom.example.com/portal |
| User identifier | preferred_username |
| Scopes | profile |
Also turn on Use SSO, so accounts already signed in to the portal aren't asked to sign in again.
Portainer matches accounts by username. Either turn on Automatic user provisioning (new users arrive as standard users; promote admins inside Portainer), or create Portainer users whose names match the Axiom usernames before switching. Keep a note of Portainer's own admin password: if single sign-on is ever misconfigured, Portainer's internal login is how you get back in.
Note: Portainer's login page shows a Login with OAuth button. One click signs an account in without a password. Portainer itself requires that click, because it checks that the sign-in started in the same browser.
Changing or removing it
- New client secret replaces the secret immediately; paste the new one into Portainer, or Portainer sign-ins fail until you do.
- Unticking single sign-on on stops all Portainer sign-ins through Axiom at once.
- Configuration changes and new secrets are audited as
sso_config_changedandsso_secret_rotated. Every completed sign-in is audited assso_signinwith the tool's name, and a tool presenting a wrong secret assso_client_refused.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| "This application is not set up for Axiom single sign-on" | Single sign-on is off for that tool, or the Client ID in the tool is wrong. |
| "...does not match its single sign-on settings" | The Redirect URL in Portainer differs from the one on the admin page. Make them identical, including the trailing /. |
| Portainer says "Unable to login via OAuth" | Portainer couldn't redeem the code: check the client secret, and that Portainer resolves the site's DNS name to the gateway on their shared axiom-portainer network with a valid certificate. The Axiom audit log shows sso_client_refused for a wrong secret. |
| "Invalid OAuth state, try again" in Portainer | The sign-in was started from a different browser or tab. Start again from Portainer's Login with OAuth button. |
| A tool keeps sending you to the portal | The browser has no portal session. Sign in at the portal; you are sent back to the tool afterwards. |