HF Cloud
Docs / Single sign-on (SSO)

Single sign-on (SSO)

Let your team sign in to HF Cloud with Microsoft Entra ID, Okta, Google Workspace, Keycloak or any OpenID Connect provider. Verified domains, just-in-time accounts and enforced SSO.

Single sign-on lets the people of your organization sign in with your own identity provider (IdP) instead of a password. HF Cloud speaks OpenID Connect (Authorization Code flow with PKCE). It is free for every organization; only owners can set it up.

What you get:

  • Sign in with SSO on the sign-in page: the person enters their work e-mail address and continues at your IdP.
  • Verified domains: only addresses in domains you proved with a DNS record can sign in through SSO.
  • Accounts on first sign-in: someone from a verified domain who has no account yet gets one and joins your organization with the default role you choose (member or viewer). Existing members keep their role.
  • Require SSO (optional): people with an address in your domains can no longer sign in with a password, Google or GitHub. Owners keep their password and two-factor sign-in as a way in if the IdP is down.

How it works

  1. You register HF Cloud as a web application at your IdP, using our redirect URI. It is the same for every organization and shown (with a copy button) on the Single sign-on page; it looks like https://hfcloud.eu/sso/callback.
  2. You enter the issuer URL, client ID and client secret in the console. We read <issuer>/.well-known/openid-configuration right away, so a typo is reported at once.
  3. You add your e-mail domains and prove each with a DNS TXT record.
  4. You run a test sign-in, switch SSO on and, if you want, require it.

ID tokens must be signed with RS256 or ES256; the issuer must match exactly, and the token must be issued for your client ID. We ask for the scopes openid email profile. The e-mail address comes from the email claim (or from preferred_username / upn when they are an e-mail address).

Set up in the console

Open the organization menu (top left) → Single sign-on (or Organization settings → Set up single sign-on).

  1. Copy the Redirect URI and create the application at your IdP (see the provider sections below).

  2. Fill in Issuer URL, Client ID, Client secret and the Role of new members, then press Connect. The secret is stored encrypted and never shown again; leave the field empty later to keep it.

  3. Under Domains, add each e-mail domain (for example example.com). Create the TXT record that is shown at your DNS provider:

    Name Type Value
    _hfcloud-sso.example.com TXT hfcloud-sso=<token shown in the console>

    Press Verify. DNS changes can take a few minutes; press it again later if the record is not found yet. Keep the record after it is verified: it is checked again every week. If it is gone, the domain is no longer verified, Require SSO switches off when no verified domain is left, and the owners get an e-mail. A domain can be verified by one organization only.

  4. Press Test sign-in. You sign in at your IdP and come back to the page with the result. A test never adds anybody or signs anybody in.

  5. Press Switch on. From now on, people of your verified domains can use Sign in with SSO.

  6. Optional: press Require SSO (needs SSO on, a verified domain and a successful test).

Changing the issuer or client ID clears the last test and switches Require SSO off until you test again.

Microsoft Entra ID

  1. In the Microsoft Entra admin center, go to Identity → Applications → App registrations → New registration.
  2. Name it (for example "HF Cloud"). Supported account types: Accounts in this organizational directory only (Single tenant). Redirect URI: platform Web, paste our redirect URI. Press Register.
  3. On the Overview page, copy the Application (client) ID and the Directory (tenant) ID.
  4. Certificates & secrets → Client secrets → New client secret. Copy the Value (not the Secret ID). Note the expiry date: enter a new secret in the console before it expires.
  5. Token configuration → Add optional claim → ID → email (accept the Microsoft Graph email permission when asked). Without it we use preferred_username, which is usually the same address.
  6. To decide who may sign in: Enterprise applications → your app → Properties → Assignment required = Yes, then add users or groups under Users and groups.
  7. In the console use the issuer https://login.microsoftonline.com/<Directory (tenant) ID>/v2.0.

The multi-tenant issuers (.../common/..., .../organizations/..., .../consumers/...) are refused: they would accept users of any Microsoft tenant.

Okta

  1. In the Okta Admin Console: Applications → Applications → Create App Integration.
  2. Choose OIDC - OpenID Connect and Web Application.
  3. Grant type: Authorization Code. Sign-in redirect URIs: paste our redirect URI. You may leave Sign-out redirect URIs empty.
  4. Assignments: limit access to the groups that should use HF Cloud. Save.
  5. On the General tab copy the Client ID and Client secret (client authentication: Client secret). Require PKCE as additional verification may stay on.
  6. Issuer: your Okta domain, for example https://example.okta.com (org authorization server), or https://example.okta.com/oauth2/default if you use a custom authorization server. Enter it exactly as issuer appears in <issuer>/.well-known/openid-configuration.

Google Workspace

  1. In the Google Cloud console, pick (or create) a project of your Workspace organization.
  2. APIs & Services → OAuth consent screen: user type Internal. This limits sign-in to accounts of your Workspace organization.
  3. APIs & Services → Credentials → Create credentials → OAuth client ID, application type Web application. Add our redirect URI under Authorized redirect URIs. Create.
  4. Copy the Client ID and Client secret.
  5. In the console use the issuer https://accounts.google.com.

Google uses one issuer for all Google accounts, so with this issuer we accept only Workspace accounts (ID tokens with the hd claim); personal Google accounts are refused even when their address is in your domain.

Keycloak

  1. In the admin console, open your realm → Clients → Create client.
  2. Client type: OpenID Connect, Client ID: for example hfcloud. Next.
  3. Client authentication: On. Authentication flow: Standard flow only. Next.
  4. Valid redirect URIs: paste our redirect URI. Save.
  5. Credentials tab: copy the Client secret. Optionally set Advanced → Proof Key for Code Exchange Code Challenge Method to S256.
  6. Make sure your users have an e-mail address (the default email client scope adds the claim).
  7. Issuer: https://<keycloak host>/realms/<realm> (older versions: https://<host>/auth/realms/<realm>).

Your Keycloak must be reachable from the internet over HTTPS (port 443 or 8443) with a publicly trusted certificate: we do not call private addresses.

Signing in

People open the sign-in page, choose Sign in with SSO and enter their work e-mail address. After signing in at your IdP they land in your organization.

  • Two-factor: SSO sign-ins skip HF Cloud's own authenticator step; enforce MFA at your IdP.
  • Session length: an SSO session lasts at most 12 hours; then the person signs in through the IdP again.
  • New people join with the default role. Change roles under Team as usual; SSO never changes an existing member's role.
  • People in several organizations keep their other memberships. If your domain requires SSO, they sign in through SSO for all of them.
  • Existing accounts with an address in your domain are linked at their first SSO sign-in. If that account was never confirmed by its owner (for example another organization created it with Add now), its password stops working and its personal SSH keys and API tokens are removed: from then on it is the person's own account.

Removing people

There is no automatic de-provisioning (SCIM) yet. When someone leaves:

  1. Block or remove them at your IdP. Their SSO session ends within 12 hours at the latest.
  2. Remove them under Team. Note that a person still allowed at your IdP would join again with the default role at their next SSO sign-in.

Require SSO

With Require SSO on, everybody with an address in one of your verified domains must sign in through SSO: password, Google and GitHub sign-in and new sign-ups with that address are refused and point to Sign in with SSO, and sessions opened another way end on their next request. This applies by e-mail domain, also to people who are members of other organizations.

Owners of your organization are the exception: they keep password + two-factor sign-in, so you can still get in when the IdP fails. Switching SSO off ends all SSO sessions of your organization.

SSO is offered and required only while your organization is active: it pauses while the organization is suspended, and closing the organization switches it off.

Troubleshooting

Message What to check
The provider reports a different issuer Enter the issuer exactly as in the discovery document (watch the trailing /).
... not reachable from the internet The issuer, token and JWKS endpoints must be public HTTPS hosts.
The identity provider refused the sign-in Client ID or secret wrong or expired; redirect URI not registered exactly.
The ID token was issued for another application The client ID in the console is not the one of this application.
... not in a domain this organization verified Add and verify the person's e-mail domain.
The identity provider did not send an e-mail address Add the email claim (Entra: optional claim; Keycloak: email scope).
This sign-in was not started in this browser Start again from the sign-in page; a sign-in must finish within 10 minutes.

Every SSO change and every SSO sign-in (with the reason when refused) is in Monitoring → Activity.