Prerequisites
- OpenHands Enterprise 0.105.0 or later.
- A Super Admin account.
- The Super Admin dashboard enabled. See Super Admin Dashboard.
- If you sign in with SAML and run 0.112.0 or earlier, a
Generic SAMLprovider added before you enable Auth V2. See Add Providers That Are Not Migrated.
Enable Auth V2
- Replicated
- Kubernetes (Helm)
- Docker Compose
- Open the Replicated Admin Console for your installation and go to the application configuration page.
- In the
Experimentalsection, turn onEnable OAuth V2 Login. - Save and deploy the updated configuration.
- The login screen shows a button for each enabled login provider, instead of a fixed button for each Git provider.
Settings > Integrationslists the Git providers that are enabled on theAuth Providerspage.
Review the Migrated Providers
Open the Super Admin dashboard and chooseAuth Providers. The upgrade creates these providers from the configuration
that was in place when you upgraded, and they are enabled:
Leave
Keycloak-federated git provider as it is on the Log in with providers.
After the upgrade, change these providers on the Auth Providers page. Changing the original settings in the Admin
Console or in your Helm values doesn’t update them. For example, turning Enterprise SSO off in the Admin Console doesn’t
disable its provider. Turn off Enabled on the provider instead. To change the name on the login button, edit the
provider’s Title.
Add Providers That Are Not Migrated
In releases up to 0.112.0, the Enterprise SSO (SAML) login from V1 isn’t migrated. If you run one of these releases and use SAML, add your identity provider with theGeneric SAML preset before you enable Auth V2. See the SAML tab in
Configure Auth Providers.
You can also add providers that were not available in V1, such as Okta or Google.
Check Sign-In
- Open OpenHands in a private browser window.
- Sign in with each login provider you expect to see.
- Confirm that you reach OpenHands and that
Settings > Integrationslists your Git providers.
Link existing accounts by email setting is on. If two accounts share
one email address, OpenHands refuses the sign-in and a Super Admin has to resolve it.
Turn Auth V2 Off
To return to V1 sign-in, turn off the setting that you turned on in Enable Auth V2.- Replicated
- Kubernetes (Helm)
Turn off
Enable OAuth V2 Login in the Experimental section, then save and deploy the configuration.
