Single sign-on (OIDC and SAML)
Let your team sign in through your own identity provider (Keycloak, Microsoft Entra ID, ADFS, Google Workspace, Okta, Authentik) over OIDC or SAML 2.0 with automatic account creation and optional SSO-only enforcement.
Uptimeify supports single sign-on over OpenID Connect (OIDC) or SAML 2.0 per organization. Team members sign in through your identity provider (IdP); customer logins are not affected. Each organization uses one provider, OIDC or SAML. Steps 1 and 2 cover OIDC; SAML is described in SAML 2.0.
Requirements
- You are an admin of your Uptimeify organization.
- You can create an OIDC client (confidential, authorization code flow with PKCE) in your IdP.
- You can add a DNS TXT record for the email domain your team uses.
1. Create the client in your IdP
Create a confidential OIDC client and allow this redirect URI (shown in Uptimeify under Settings → Security → Single sign-on already before the first save, together with the scopes; GET /api/organization/sso returns both as redirectUri and scopes):
https://uptimeify.io/api/auth/sso/callback/org-<your-organization-id>Scopes: openid email profile. The client secret stays with Uptimeify encrypted and is never shown again.
2. Set up SSO in Uptimeify
Go to Settings → Security → Single sign-on, choose "OpenID Connect" and fill in:
| Field | Meaning |
|---|---|
| Issuer URL | The issuer of your IdP, for example https://login.microsoftonline.com/TENANT-ID/v2.0. Uptimeify loads /.well-known/openid-configuration from it when you save. |
| Client ID, client secret | From step 1. Leave the secret empty later to keep the stored one. |
| Email domain | The domain of your team's addresses, for example example.com. One domain belongs to one organization only. |
| Role for new users | Read only, Editor, Responder or Admin. People who sign in via SSO for the first time get an account in your organization with this role. |
Test connection checks the issuer before (or after) you save, without storing anything: it loads the discovery document, compares the issuer and checks that the authorization, token, JWKS and (if present) userinfo endpoints use HTTPS, point to public addresses and answer. The JWKS must contain at least one key. The result lists each check; a failed check names the reason (for example not reachable or HTTP 404). The same check runs as POST /api/organization/sso/test (organization admins; body { "issuer": "https://..." }, empty for the stored issuer).
3. Verify the domain
Uptimeify shows a TXT record. Create it at your DNS provider, then click Check:
_uptimeify-sso.example.com TXT "uptimeify-sso=<token>"SSO only works once the domain is verified. Changing the domain, the issuer or the IdP requires verifying again.
4. Sign in
On the login page, click Sign in with SSO, enter your work email and you are redirected to your IdP. Existing accounts of your organization with the same email are reused; addresses that belong to another Uptimeify organization are rejected.
SSO only
After the domain is verified and one SSO login succeeded, you can switch on SSO only. Team members can then no longer sign in with a password. Two exceptions:
- Admins keep password and 2FA as emergency access, in case your IdP is down or misconfigured.
- Customer logins (users with access to individual customers) are not affected.
SAML 2.0
Instead of OIDC you can connect a SAML IdP. Under Settings → Security → Single sign-on, choose "SAML 2.0", paste or upload your IdP's metadata XML, set domain and default role, and save. Uptimeify then shows:
| Field | Value |
|---|---|
| Entity ID (identifier) | https://uptimeify.io/api/auth/sso/saml2/sp/metadata?providerId=org-<id> |
| Reply URL (ACS) | https://uptimeify.io/api/auth/sso/saml2/sp/acs/org-<id> |
| SP metadata | the same URL as the entity ID, publicly reachable and downloadable as a file |
You verify the domain with a TXT record as for OIDC (step 3). Rules:
- Assertions must be signed (SHA-256 or stronger). SHA-1 is rejected.
- SP-initiated sign-in only: sign-in always starts at Uptimeify ("Sign in with SSO"). Tiles in the IdP portal (IdP-initiated) are rejected.
- The email address comes from the attribute
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress, otherwiseemailormail, otherwise from the NameID (email format). - Encrypted assertions are supported: switch on "IdP encrypts assertions"; the certificate is in our SP metadata. With the switch on, unencrypted assertions are rejected.
- IdP certificate rollover: upload the new metadata. Our SP certificate stays the same.
- Switching between OIDC and SAML or to a different IdP requires verifying the domain again and turns SSO only off.
Microsoft Entra ID
Enterprise application → Create your own application → Single sign-on → SAML. "Upload metadata file" with our SP metadata, or enter identifier and reply URL from above. The default claims are enough (emailaddress is included). Under "SAML Certificates", download the Federation Metadata XML and paste it into Uptimeify. Assign users or groups to the application.
Keycloak
Clients → Import client with our SP metadata (or client ID = entity ID, valid redirect URI = ACS). "Sign assertions" on. Mapper "User Property" email → SAML attribute http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. IdP metadata: https://<keycloak>/realms/<realm>/protocol/saml/descriptor.
ADFS
Add Relying Party Trust → "Import data about the relying party from a file" (our SP metadata). Claim rule "Send LDAP Attributes as Claims": E-Mail-Addresses → E-Mail Address. Secure hash algorithm: SHA-256. IdP metadata: https://<adfs>/FederationMetadata/2007-06/FederationMetadata.xml.
Provider examples
Keycloak: Client type OpenID Connect, client authentication on, standard flow on, PKCE method S256. Issuer: https://keycloak.example.com/realms/REALM. Make sure users have a verified email.
Microsoft Entra ID: App registration, platform "Web" with the redirect URI above, create a client secret. Issuer: https://login.microsoftonline.com/TENANT-ID/v2.0.
Google Workspace: Google Cloud console, OAuth client ID of type "Web application" with the redirect URI above. Issuer: https://accounts.google.com.
Error messages
| Message | Meaning |
|---|---|
| SSO is not set up for this domain | No verified SSO for the email domain. Sign in with your password. |
| Address outside the verified domain | The IdP returned an email that does not end on the verified domain. |
| Address marked as unverified | The IdP sent email_verified: false. |
| Address belongs to a different organization | The email already has an account in another Uptimeify organization. |
| Account is deactivated | An admin deactivated this account in Uptimeify. |
| Your organization requires single sign-on | SSO only is on; use Sign in with SSO. |
| The IdP metadata is invalid | The XML lacks the entity ID, an HTTPS sign-on URL or a signing certificate. |
| All signing certificates in the IdP metadata have expired | Download current metadata from your IdP and paste it again. |
| Your identity provider's response was rejected | The SAML response was unsigned, signed with the wrong key, expired, meant for another recipient or IdP-initiated. Start again with Sign in with SSO. |
| Your identity provider did not send an unambiguous email address | The email attribute is missing or contradicts the NameID. Send the emailaddress attribute from your IdP. |