Auth Providers page of the Super Admin dashboard to add the identity providers
and Git providers that your users sign in with or connect to OpenHands Enterprise.
Prerequisites
- Auth V2 is enabled. See Migrate From V1 to V2.
- You are a Super Admin.
- Your license includes SSO, if you are adding a SAML or direct OIDC login provider such as Okta or Google.
- Administrator access to the provider you are connecting, so you can create an OAuth app or a SAML application.
Add a Provider
- Open the Super Admin dashboard and choose
Auth Providers. - Select
Add Provider. - Choose a preset in
Provider Type, then selectCreate Provider. The provider is created with placeholder values and switched off, so you can copy its URLs into your provider first. - On the provider’s edit page, copy the
Redirect URL(OAuth) or theSP Metadata URL(SAML) into the OAuth app or SAML application you create in your provider. - Enter the details from your provider. See Provider Details.
- Turn on
Enabled, then selectSave Changes.
Log in with providers migrated from V1 keep using Keycloak until you replace them.
Open OpenHands in a private browser window to check the result. The login screen shows a button for each enabled login
provider. When only one login provider is enabled, users go straight to it.
Provider Details
- Okta
- Google
- Generic OIDC
- Git Provider
- Jira Data Center
- SAML
- Integrated Password
Choose the
Okta OIDC preset. In your Okta OIDC app, add the Redirect URL as an allowed redirect URI.In the Authorization URL, Token URL, and Userinfo URL fields, replace YOUR_DOMAIN with your Okta domain.
Then enter the app’s Client ID and Client Secret.The preset requests the scopes openid, email, and offline_access.Provider Settings
These settings are on the provider’s edit page.Manage Providers
TheAuth Providers list shows each provider’s Type, an Enabled switch, and a Login IDP switch. Use the row menu to
edit a provider, view its user links, or delete it.
- Disable a provider: Turn off
Enabled. Users can no longer start a new sign-in or connection through it. Users who are already signed in or connected keep working. - View user links: Choose
User Linksto see the accounts linked to a provider. You can re-point an external identity to a different account. - Delete a provider: Choose
Deleteand confirm. This cannot be undone.
Make Your Identity Provider the Only Way In
With Auth V2, having a GitHub, GitLab, or other Git provider account doesn’t give someone access to OpenHands. Only the providers you enable for sign-in do. To make your own identity provider (IdP), using OIDC or SAML, the single source of truth:- Add and enable your IdP. Turn on
Link existing accounts by emailon it, so existing users keep their accounts. Turn this on only if your IdP asserts email addresses its users own. Open OpenHands in a private browser window and check that you can sign in with it. - Turn off
Enabledon every other sign-in provider, such as theLog in with GitHub,Log in with GitLab, andLog in with Bitbucketproviders that the migration created. Also turn it off onLogin with Passwordif you don’t want email and password sign-in. - For the Git providers you keep as integrations, turn off
Use as OpenHands Authentication ProviderandAccept new registrations. Users then connect them fromSettings > Integrationsafter they sign in with your IdP, and a Git account alone can’t create a user.
Use Jira Data Center Sign-In With the Integration
AJira Data Center provider works with the Jira Data Center integration
when both of these are true:
- The host in the provider’s
Token URLis the same host as the integration’sJira Data Center Base URL. - The user signed in with the provider.
- Connecting: When the user connects Jira Data Center in
Settings > Integrations, OpenHands links their Jira account without a second Jira consent screen. This applies when the integration’s user linking method is OAuth. - Jira events: OpenHands matches the Jira user who triggers an event to the OpenHands user through their Jira
user key, without a separate connection step. A user who disconnected Jira Data Center in
Settings > Integrationsstays disconnected. - Conversations: The user’s Jira access token is available in their conversations under the provider’s
Sandbox secret name, and the agent is told the Jira base URL and the secret name.
Connect Git Providers as a User
Users connect Git providers fromSettings > Integrations. The page lists the enabled Git providers. A disabled provider
appears only for users who already connected it, so they can disconnect it.
