One of the SAML identity providers (IdP) you can use is Google Workspace.
Before you set up Google Workspace, read Understanding SAML/SSO for basic concepts and tips.
To set up SSO with Google Workspace, you need:
- Admin permissions in Google Workspace.
- The Super Admin role in Hudu.
- Your own domain registered and verified with Google Workspace.
- Matching email addresses: each user's email in Google Workspace must match their Hudu account email exactly.
- If Just-in-Time (JIT) provisioning is not enabled, create users in Hudu before they sign in with SSO. Hudu does not create accounts on SSO login unless JIT is enabled.
Just-in-Time (JIT) Provisioning
Hudu supports Just-in-Time (JIT) provisioning for users who sign in through SSO. On a user's first successful SSO login, Hudu can create their account from the attributes and group memberships sent during authentication.
Visit Just-in-Time (JIT) Provisioning for additional information on enabling JIT provisioning in Hudu.
How to Enable SSO in Hudu
Open the SAML settings in Hudu first, then configure Google Workspace, then return here to paste the IdP values.
- Sign in to Hudu and open the Admin tab.
- Go to Security.
- Next to SAML/SSO, click Configure.
- Set Single Sign-On to On. (The page saves when you change Off/On.)
- Leave the IdP fields for now. Complete Configuring Google Workspace, then finish Configuring Hudu and click Save.
Configuring Google Workspace
- In the Google Admin console:
- Go to Apps → Web and mobile apps → Add app → Add custom SAML app.
- Enter app details:
- App name (required)
- Description (optional)
- App icon (optional)
- Click Continue.
- On the Google Identity Provider details page, copy the SSO URL, Entity ID, and Certificate (and the SHA-256 fingerprint if shown). You will paste these into Hudu later. You can also retrieve them later from the app.
- Click Continue.
-
Service provider details (from your Hudu instance). Replace
docs.mywebsite.comwith your Hudu hostname. Do not include a trailing slash.-
ACS URL:
https://docs.mywebsite.com/saml/consume -
Entity ID:
https://docs.mywebsite.com - Start URL: Leave blank.
- Signed response: Leave unchecked unless Google or your policy requires it.
-
ACS URL:
- Set Name ID:
- Name ID format: EMAIL
- Name ID: Basic Information → Primary email
- Click Continue.
- Attribute mapping can be skipped for basic SSO.
- Click Finish.
- Turn on user access for the app (User access). Access must be ON for every user who will sign in with SSO.
Configuring Hudu
- In Hudu, as a Super Admin, go to Admin → Security → Configure (next to SAML/SSO).
- Enter the Identity Provider (IdP) values from Google (the values you copied earlier):
- SAML Issuer URL: Google's Entity ID. Paste it exactly.
- SAML Login Endpoint: Google's SSO URL. Paste it exactly.
- SAML Logout Endpoint: Google does not provide a separate SAML logout URL. Paste the same SSO URL here so the required Hudu field is filled.
- SAML Fingerprint: Copy Google's SHA-256 fingerprint, then check Use SHA-256 in Hudu.
-
SAML Certificate: Paste the certificate from Google exactly, including the
-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----lines. Do not leave a trailing space after the certificate.
The Use SHA-256 checkbox applies to the fingerprint, not the certificate. If you paste Google's SHA-256 fingerprint, check Use SHA-256. If you use a SHA-1 fingerprint instead, leave it unchecked.
- Go to Google Admin → Apps → Web and mobile apps.
- Open the app you created, then open the service provider / IdP details for the app.
- Click Manage certificates to view or copy the certificate and fingerprint.
- Go to OneLogin's fingerprint calculator.
- Paste the SAML certificate from Google Workspace into the X.509 cert box.
- Set the algorithm to SHA-1.
- Copy the fingerprint into the SAML Fingerprint field in Hudu.
- Leave Use SHA-256 unchecked.
The fingerprint should look similar to: e1ec606f56ddcf9f364be0c2cff7221354223121
SAML ARN: Controls the requested authentication context Hudu sends to the IdP (RequestedAuthnContext). Choose the option that matches how your users sign in.
Hudu does not request a specific authentication method. Use this if any users sign in to Google with passwordless methods.
Requests that the IdP authenticate the user with a username and password.
Requests that the IdP authenticate the user with a username and password over SSL/TLS.
- Click Save. You should see a confirmation that SAML was updated.
Testing SAML
- Open an incognito or private window and go to your Hudu URL.
- Enter the email of a user who should use SSO, then click Next. You should be redirected to Google.
- If you land in Hudu after authenticating, SAML is working.
- You can also use Google Workspace's SAML test option for the app, if available in your Admin console.
- Before you require SSO for non-admins, confirm every admin exists in Google Workspace with the same email as their Hudu account and has access to the SAML app.
Additional Settings
Exempt groups from SSO
You can exempt groups from SSO. Members of exempt groups sign in with their Hudu password. Portal users are always exempt. Admins and above are offered a password option if SSO fails, so a broken SAML config does not lock out administrators.
If an admin cannot complete SSO and needs to sign in with a password, append /?sso_disabled=true to your instance URL (for example, https://docs.mywebsite.com/?sso_disabled=true). This break-glass page is for admins only.
FAQ
Hudu routes every user by email. Enter your email on the login page and click Next. Hudu then sends you to your identity provider or asks for your password, depending on how your account is set up.
This usually means the Entity ID in Google Admin is wrong, or the user does not have access to the SAML app. Confirm the Entity ID is your Hudu URL with no trailing slash (for example, https://docs.mywebsite.com), and that user access for the app is turned on.
This usually means the certificate fingerprint does not match. Confirm that Use SHA-256 matches the fingerprint you entered: checked for Google's SHA-256 fingerprint, unchecked for a SHA-1 fingerprint. Then confirm the SAML Certificate field matches the same certificate.