Skip to main content
Use the 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

  1. Open the Super Admin dashboard and choose Auth Providers.
  2. Select Add Provider.
  3. Choose a preset in Provider Type, then select Create Provider. The provider is created with placeholder values and switched off, so you can copy its URLs into your provider first.
  4. On the provider’s edit page, copy the Redirect URL (OAuth) or the SP Metadata URL (SAML) into the OAuth app or SAML application you create in your provider.
  5. Enter the details from your provider. See Provider Details.
  6. Turn on Enabled, then select Save Changes.
Providers you add here connect directly to the provider, not through Keycloak. Use this for new integrations. The 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

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

The Auth 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 Links to see the accounts linked to a provider. You can re-point an external identity to a different account.
  • Delete a provider: Choose Delete and 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:
  1. Add and enable your IdP. Turn on Link existing accounts by email on 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.
  2. Turn off Enabled on every other sign-in provider, such as the Log in with GitHub, Log in with GitLab, and Log in with Bitbucket providers that the migration created. Also turn it off on Login with Password if you don’t want email and password sign-in.
  3. For the Git providers you keep as integrations, turn off Use as OpenHands Authentication Provider and Accept new registrations. Users then connect them from Settings > Integrations after they sign in with your IdP, and a Git account alone can’t create a user.
Users who are already signed in keep working until their session ends.

Use Jira Data Center Sign-In With the Integration

A Jira Data Center provider works with the Jira Data Center integration when both of these are true:
  • The host in the provider’s Token URL is the same host as the integration’s Jira Data Center Base URL.
  • The user signed in with the provider.
For those users:
  • 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 > Integrations stays 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 from Settings > Integrations. The page lists the enabled Git providers. A disabled provider appears only for users who already connected it, so they can disconnect it.