Prerequisites
- An OpenHands Enterprise installation.
- Administrator access to your corporate identity provider, so you can create a SAML application and read its metadata.
- Your installation’s Authentication hostname, which is
auth.<your-openhands-domain>by default.
allhands.
Step 1: Register OpenHands with Your Identity Provider
Create a SAML application in your identity provider with these values. Replace<your-auth-hostname> with your Authentication hostname, for example
auth.openhands.example.com.
Send these attribute statements with the SAML response:
email(required)firstNameandlastName(recommended)
Step 2: Enable SAML SSO
Pick the path that matches how OpenHands Enterprise is deployed.- Replicated
- Standalone Helm
Open the Replicated Admin Console for your OpenHands Enterprise
installation and go to the application configuration page.In Enterprise SSO (SAML) Authentication:
- Enable Enable Enterprise SSO Authentication.
- Enter your identity provider’s metadata URL in SAML Metadata URL.
- Optionally change the Identity Provider Display Name.
- Save and deploy the updated configuration.
Step 3: Verify Sign-In
- Open
https://app.<your-openhands-domain>in a private browser window. - Choose the Enterprise SSO button. Its label is the Identity Provider
Display Name you configured (for example,
Company SSO). - Complete sign-in with your identity provider.
- Confirm you return to OpenHands signed in.
Troubleshooting
The SSO button shows the OpenHands login form instead of your identity provider
This means OpenHands did not create the SSO provider from your metadata. The most common cause is a missing signing certificate in the identity provider’s SAML metadata. Confirm the metadata includes a signing certificate (see the warning in Step 1), then save and deploy again. You can inspect the metadata for a signing certificate by downloading it and checking for anX509Certificate element inside a KeyDescriptor with
use="signing":
0 means no certificate is published, and SSO provisioning will
fail.
OpenHands cannot fetch the metadata URL
OpenHands fetches the metadata URL server-side. Make sure the URL is reachable from the cluster and is served with a certificate from a trusted certificate authority. Self-signed or untrusted TLS certificates cause the fetch to fail.Sign-in succeeds but no account is created
The SAML response is missing theemail attribute. Configure your identity
provider to release email (see Step 1).
