How Open WebUI signs users in through Okta OIDC
A security or IT team that wants staff to sign in to a self-hosted Open WebUI with their Okta accounts, instead of local passwords, can do so because Open WebUI supports OpenID Connect (OIDC). Okta is connected as a generic OIDC provider: Open WebUI redirects the user to Okta, receives the authentication result, and creates or matches the local account from the identity Okta returns. Group membership travels in a groups claim in the token, and Open WebUI reads that claim to place the user into groups it already knows about or to create them at first sign-in.
The Okta-specific values must be confirmed in your own Okta tenant and against the Open WebUI version you run. That includes the application type you create in Okta, the scopes you request, the exact name of the claim that carries groups, and which Okta groups are included in the token. Okta administrators often configure group filters and claim expressions differently from one tenant to the next, so do not assume a sample value from a blog post matches your setup. The OIDC settings in the Open WebUI features documentation are the reference for the environment variables and behavior, and the release notes for your installed version should be checked before you change anything in production.
Plan three decisions before you open the Okta admin console. Decide which Okta group or groups are allowed to sign in, because the groups claim will carry every group that matches your filter. Decide who owns the Open WebUI admin role and whether that role should come from a claim at all. Decide how you will test the flow with a non-admin account and an admin account before rollout. Write these decisions down, because the sibling sections on mapping groups to roles and on troubleshooting sign-in depend on the same claim names and group rules.
What you need before you configure Okta and Open WebUI
Most Open WebUI SSO failures trace back to decisions made before anyone opens the Okta admin console. Settle the public URL, the Okta permissions, the group names and the replica count first, then configure the two sides to match.
Stable public HTTPS URL
Open WebUI builds its OIDC redirect URI from the public address users type into the browser. Pick the final hostname before you register the Okta app, because changing it later means editing the Okta redirect and the Open WebUI configuration together. Confirm that the URL users will reach is the same one the server advertises, including scheme and port.
Open WebUI features docsOkta admin rights for app and groups
You need an Okta role that can create an OIDC application integration, configure its sign-in redirect URIs and assign groups to the app. Confirm this with your Okta administrator before the change window, since a read-only or app-only admin will stall the work at the first step. Ask who owns the Okta tenant and who approves changes to it.
Group naming plan
Write down which Okta groups will map to Open WebUI admin, user and shared-access roles before configuration starts. Use stable, readable names that do not depend on a person or a project that may be renamed. Decide whether groups should be created at login when they do not yet exist in Open WebUI, because that choice changes how much you must pre-provision.
Reverse proxy with valid certificate
Put Open WebUI behind a reverse proxy that terminates TLS with a certificate Okta and user browsers trust. Make sure the proxy forwards the original host and protocol headers, so the redirect back to Open WebUI uses the public address. Test the certificate chain from outside your network, not only from inside it.
Single or multiple replicas
Decide early whether you will run one Open WebUI instance or several replicas behind a load balancer. Multi-instance deployments require PostgreSQL instead of SQLite and Redis for shared sessions and websocket state, plus shared file storage and an external vector database. The scaling guide lists these requirements in detail, so review it before you size the database and cache.
Scaling guideRunning Open WebUI version
Confirm the release your team deploys and record it in the change ticket, because the SSO settings and group behavior you test should match that version. The current release at the time of writing is v0.12.3, published October 16, 2026. Check the release notes for your version before you copy any configuration from this guide.
Open WebUI releasesHow a sign-in travels from browser to Okta and back into Open WebUI
The sign-in starts in the user's browser, which is redirected to Okta's authorization endpoint. After the user authenticates, Okta returns an authorization code to Open WebUI, which exchanges it at Okta's token endpoint and reads the groups claim from the ID token or userinfo endpoint. Open WebUI then matches each group name against its database, creating any missing groups at login. Check that the groups claim arrives on every sign-in, because a missing claim is the most common cause of users landing without the groups they need.
Sign-in path from the browser through Okta and back into Open WebUI, with group matching at login.
Configuring the Okta app and Open WebUI in sequence
This sequence connects Open WebUI to an Okta OIDC application, sends group membership in the token, and lets Open WebUI create missing groups at sign-in. The finished result is a working Okta sign-in option, a token that carries only the groups your filter allows, and a test user whose groups appear in the Open WebUI admin panel.
Create an OIDC web application in Okta
The Okta administrator creates a new application in the Okta admin console, selects OIDC as the sign-in method and web application as the application type, then sets the sign-in redirect URI to the callback path that the Open WebUI OIDC documentation specifies for your WebUI URL. Confirm the exact path in that documentation before saving, because a mismatched redirect URI blocks sign-in. Done when the application saves and its General tab shows the Okta-assigned client ID and client secret.
Record the client ID and secret securely
Copy the client ID and client secret from the application settings and store them in your secrets manager or in the protected environment file that runs Open WebUI, not in a shared document or source repository. On the Assignments tab, assign the test account or a test group so Okta issues tokens to it. Done when the application lists at least one assigned test user and the secret is readable only by the people who operate Open WebUI.
Add a groups claim with a filter
In the authorization server that issues your tokens, add a custom claim named groups, include it in the ID token or userinfo response, and set a group filter that matches only the Okta groups Open WebUI should receive, such as groups that share a naming prefix for AI users. Keep the filter narrow so unrelated directory groups stay out of the token. Done when a test sign-in produces a decoded ID token with a groups array that contains the test user's intended groups and none of the excluded ones.
Set the OIDC variables in Open WebUI
On the Open WebUI host, set the OIDC environment variables listed in the Open WebUI features documentation. These cover the discovery URL for your Okta authorization server, the client ID and secret from the second step, the scopes you need including openid, profile and email, and the setting that tells Open WebUI to read the groups claim for group sync. Confirm the exact variable names against the release you run, since names can change between versions. Done when the container or configuration file shows every variable with a value and none are blank.
Restart Open WebUI and confirm the login button
Restart the Open WebUI service or container so it reads the new values, then open the sign-in page in a private browser window. The page should show an Okta sign-in option alongside any local login that remains enabled. If the option is missing, check the startup logs for OIDC errors before changing anything in Okta. Done when the button appears and clicking it sends the browser to the Okta sign-in page for your organization.
Sign in with a test account and check groups
Sign in with the test account from the second step, approve the Okta prompt, and return to Open WebUI. In the admin panel, confirm that the user record exists and that each permitted group from the token appears, including any group Open WebUI created during this login. Confirm that the test user holds the access that group grants. In multi-replica deployments, confirm the Redis requirement for session handling before you rely on sign-out. Done when the expected group appears in the admin panel with the test user as a member.
Mapping Okta attributes and groups to Open WebUI identities
This table lines up each Okta source with the claim or attribute name it produces and the Open WebUI setting it feeds. Read it as a checklist: confirm every claim name against a live token from your own Okta org before you set environment variables, because custom authorization servers and claim configuration vary. The main takeaway is that identity, group membership and admin rights should be driven by separate, explicitly chosen Okta sources.
| Okta source | Claim or attribute name | Open WebUI target | Notes |
|---|---|---|---|
| Subject identifier | sub (to be confirmed against the live token) | Unique OIDC user identity | Keep it stable. Changing the subject source later can create duplicate accounts for existing users. |
| User email | email (to be confirmed against the live token) | User email and account matching | Confirm the email claim is present and verified in the access or ID token. Decide how you will handle users who change their email address. |
| Okta group membership | groups claim (name and scope to be confirmed) | Group membership in Open WebUI | Add the groups claim to the token through your authorization server. Confirm it carries group names, not only IDs, and that it includes the groups you need. |
| Okta group names | Values inside the groups claim (to be confirmed) | Open WebUI group names created or matched at login | Use a small, documented naming convention for Okta groups. Renaming an Okta group changes the name Open WebUI receives. |
| Admin status | Membership in a dedicated admin group (to be confirmed) | Open WebUI administrator role | Limit admin rights to one named Okta group. Verify admin status with a test account before granting it to real users. |
| Default role for users without a matching group | Absence of a mapped group (no claim value) | Default Open WebUI user role | Decide whether unmatched users can sign in at all. Confirm the default role in your Open WebUI version before rollout. |
How group sync and just-in-time group creation behave at login
Open WebUI reads group membership from the groups claim on each OIDC sign-in and applies that membership to the user's account. The sign-in is the sync event: group changes made in Okta do not reach Open WebUI until the user next authenticates, and any group that does not yet exist in Open WebUI can be created at that moment. Confirm in your own test environment which group behaviors your Open WebUI version enables, such as automatic group creation, group name matching and whether membership is removed when a claim no longer lists a group, because these settings differ between releases and configuration methods.
The practical consequences show up in three places. First, name collisions: if two Okta groups produce the same name after normalization, or a local Open WebUI group already uses that name, the sync may attach users to a group you did not intend. Second, stale groups: a group removed or renamed in Okta keeps its Open WebUI group, its members and any resource sharing until that user signs in again or an administrator cleans it up, so access can outlive the decision to remove it. Third, display labels are fragile: group names that change for readability, such as adding a department prefix, create new groups instead of updating existing ones. Use stable, machine-friendly group names in Okta, and decide before rollout who owns the naming convention.
Before you choose this sync model, compare it with SCIM 2.0 provisioning, which Open WebUI documents as a separate option for user and group lifecycle. SCIM pushes create, update and deactivate events from the identity provider rather than waiting for a sign-in, which changes how stale groups and offboarding are handled. Ask your team which lifecycle events must take effect immediately, who will operate the provisioning connector and how you will test deprovisioning. The Open WebUI features documentation lists both options, and the choice should be written into the scope before configuration begins.
Security settings to lock down in the Okta integration
Okta sign-in is only as strong as the settings around it. The cards below cover who can reach Open WebUI, how users prove who they are, how secrets and URLs are handled, how much identity data the app receives, and how long sessions last. Work through them together before the integration reaches users.
Restrict app assignment in Okta
Assign the Open WebUI application in Okta only to the groups that should reach it, rather than to the whole org. Users outside those assignments are blocked at Okta before Open WebUI sees a request. Review assignments when teams change, and confirm that group-based access in Okta matches the groups Open WebUI uses for permissions. Assignment is your first gate, so check it first.
Enforce MFA in Okta policy
Open WebUI offers authenticator-app MFA of its own, but for an Okta-fronted deployment the stronger control is an Okta sign-on policy that requires MFA for the Open WebUI application. Confirm the policy applies to the app, covers the sign-in paths your users actually take, and does not carve out exemptions without a recorded reason.
Open WebUI featuresKeep the client secret in a secrets store
The OIDC client secret grants the ability to complete the sign-in flow for this application, so it should not sit in a shared file, a chat thread or a version-controlled Compose file. Load it from a secrets manager or orchestrator secret into the environment at start, restrict who can read it, and plan a rotation procedure that updates Okta and Open WebUI together.
Serve HTTPS with the correct WebUI URL
Set the public WebUI URL to the exact HTTPS address users open, and make the redirect URI registered in Okta match it character for character. A mismatch between the registered redirect, the proxy hostname and the configured URL is the most common cause of failed sign-in. Terminate TLS at a proxy you control and confirm that no plain HTTP path reaches the login endpoint.
Limit the groups claim
Configure the groups claim to send only the Okta groups Open WebUI needs to map to its own groups and roles, using a filter that matches a defined naming pattern. A broad claim exposes group names from across the org to the application and inflates token size. Review the filter whenever group names change, because a loose filter can quietly widen what the app receives.
Plan sign-out and session lifetime
Without Redis, signing out of Open WebUI does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Signing out of Okta does not change that on its own. Decide whether a single Redis instance is acceptable for your replica count, shorten session lifetime to match your risk tolerance, and test the sign-out path from both Open WebUI and Okta before go-live.
Scaling Open WebUIHow the setup differs for one replica and for several replicas
A single-replica deployment runs one Open WebUI instance with one database and no shared state service. Sessions and application state stay inside that one process and its local storage, which makes the sign-in path easier to reason about and easier to troubleshoot. The Okta application, redirect URI and group claim are configured the same way as in a larger setup, but there are fewer moving parts when a login fails.
- SQLite on local disks: SQLite is acceptable for a single replica, evaluation and small teams only when the database file sits on locally attached SSD or NVMe storage rather than network storage.
- No Redis requirement for one replica: Redis is needed for shared sessions across replicas, so a single instance does not need it to keep sign-in working.
- Simpler session behavior: Without Redis, sign-out does not revoke tokens, and they remain valid until they expire, by default after 4 weeks. Plan your Okta session lifetime and your Open WebUI expectations with that in mind.
- Local file storage: Uploads and knowledge files live on the instance's own disk, so backups must cover that path.
- Growth path: If you expect a second replica later, plan the move to PostgreSQL, Redis and shared storage now rather than retrofitting the redirect and token tests.
Before go-live, confirm the database file location, your backup target and the token lifetime you accept for signed-out users.
A multi-replica deployment puts several Open WebUI instances behind one load balancer, so a user's next request may reach a different process. The scaling guide requires PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from multiple processes well. Each replica also has to see the same sessions, websocket connections, uploads and knowledge, which changes both the architecture and the testing you run against Okta.
- PostgreSQL required: Move the database to PostgreSQL before adding a second replica.
- Redis for shared state: Redis holds sessions, websocket connections and application state so that any replica can serve a signed-in user. Without it, sign-out does not revoke tokens.
- Shared file storage: Uploads and knowledge must be reachable from every replica, so choose storage that all instances mount or access.
- External vector database: The default ChromaDB will crash in multi-process setups, so use an external vector database such as PGVector, Qdrant, Milvus or Elasticsearch.
- Okta redirect and token tests: Register the public load balancer URL as the redirect URI, not any replica address, and confirm that a login started on one replica completes on another. Test sign-out and token expiry from each replica.
Before go-live, confirm the load balancer URL, the Redis and PostgreSQL endpoints, and that a sign-in and sign-out sequence passes across at least two replicas.
Common Okta sign-in failures and how to fix them
This table lists the sign-in and group-sync failures most often seen when Open WebUI is connected to Okta, with the likely cause and the fix for each. Read it by matching the symptom your users report to the row, then check the cause in your Okta app and Open WebUI settings before changing anything. For deeper fixes, see the Open WebUI SSO troubleshooting topic.
| Symptom | Likely cause | Fix |
|---|---|---|
| Okta shows a redirect URI error at sign-in | The callback URL registered in the Okta app does not exactly match the URL Open WebUI sends | Copy the callback URL from Open WebUI's OIDC setup, then match scheme, host, port and path exactly in the Okta app's sign-in redirect URIs |
| Sign-in loops back to the login page or returns to the wrong host | The WebUI URL setting is missing, uses the wrong hostname, or does not match the public address behind the reverse proxy | Set the WebUI URL to the exact public HTTPS address users type, and confirm the proxy forwards the original host and protocol headers |
| No groups arrive in Open WebUI after sign-in | The Okta app has no assigned groups for the user, or the groups claim filter excludes them | Assign the user to an Okta group that the app can see, then add a groups claim to the ID token with a filter that includes those groups |
| Group names appear as long IDs instead of readable names | The claim is returning Okta group identifiers rather than group names, or the mapping uses the wrong field | Configure the groups claim to return group names, then confirm the claim name in Open WebUI matches the claim Okta sends |
| Users land in the default role after a group change | Group membership updates in Okta but Open WebUI only reads groups at sign-in, so existing sessions keep the old values | Ask the user to sign out and sign in again, then check the role mapping and admin group settings in Open WebUI |
| Environment variable changes have no effect | Persistent configuration saved in the admin settings overrides the environment values on restart | Review the OIDC settings in the admin panel, make changes there or reset the stored values, then restart and recheck |
| Sessions stay valid after the user signs out | Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks | Deploy Redis for multi-replica or revocation-sensitive setups, and confirm session lifetime with your security policy before go-live |
Questions buyers ask before outside help on Okta SSO
What does outside help for Okta SSO with Open WebUI cost?
No price is published for this work, and DeployOpen does not publish a price list. A quote follows from a written scope, so the cost depends on what the engagement covers. The main cost drivers are the complexity of your Okta tenant, the number of groups that must sync and how they nest, the number of Open WebUI replicas, and how much testing you want before cutover. Ask for a quote that separates the Okta configuration, the Open WebUI configuration, the group mapping design, testing and handover, and any ongoing support as a separate retainer. Ask which items are one-time and which recur.
How long does an Okta SSO integration for Open WebUI take?
The duration depends mainly on how many groups must be designed and mapped, how many Okta applications and authorization servers are involved, whether your deployment runs more than one replica, and how many test cycles your security team requires. Schedule risk usually comes from waiting on Okta admin approvals and change windows, not from the configuration itself. Ask the provider for a timeline tied to written milestones, and confirm which dependencies on your side could pause the work.
What does your team need to provide for an Okta integration?
Plan for four inputs before work starts. First, an Okta administrator account with rights to create the OIDC application and configure a groups claim. Second, a finished group design that lists which Okta groups map to Open WebUI users, admins and default sharing. Third, test accounts in several groups so each role can be checked before production. Fourth, a change window agreed with the teams that depend on Open WebUI, along with a rollback plan. Confirm these inputs with the provider in the scope document so nothing blocks the build midway.
Can our internal engineers set up Okta SSO for Open WebUI alone?
Yes, a capable identity or platform team can do this in-house if it has Okta administration experience, access to the Open WebUI configuration, and time to test. The harder parts are usually the group claim design, the just-in-time creation of groups at login, and verifying that removed Okta group memberships take effect in Open WebUI. Weigh your team's current workload and Okta experience against the cost of a partner. Many teams split the work, handling Okta administration internally and bringing in outside help for the design review and test plan.
How is a fixed-scope Okta SSO engagement agreed in writing?
Most DeployOpen engagements are fixed-scope, meaning the scope, deliverables and timeline are agreed in writing before work starts. A written scope typically names the Okta objects in use, the Open WebUI version and deployment method, the group mapping rules, the test cases, the handover items and what is excluded. Changes after signature go through a written change request that states the effect on scope and schedule. Ask for the document before you sign and check that the exclusions match your environment.
Which Open WebUI settings does the Okta integration depend on?
The integration depends on the OIDC client configuration, the redirect URI matching the public address users reach, and the groups claim being included in the token. Open WebUI also needs a consistent setting for group creation and role mapping so groups created at login land where you expect. For multiple replicas, the scaling guide requires Redis as a shared state store and PostgreSQL rather than SQLite, and without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Ask the provider how these settings will be verified and documented.
What does the Open WebUI License mean for this work?
The Open WebUI License adds a branding protection clause for code from v0.6.6 onward, and it forbids altering or removing branding in deployments above 50 users in any rolling 30-day period unless the operator holds an enterprise license or written contributor permission. SSO configuration itself does not change this, but the licensing position should be settled before rollout. Ask your legal or procurement team to confirm how the license applies to your user count, and ask the provider to note any branding changes in the scope.
How DeployOpen scopes, delivers and supports Open WebUI SSO with Okta
DeployOpen approaches Open WebUI SSO with Okta as a fixed-scope piece of work: the Okta application, the OIDC settings, the groups claim and the group sync are agreed in writing before build starts. The engagement ends with documented configuration, verification evidence and a handover your own team can operate.
How we scope
- Written scope covers the Okta OIDC application, redirect URI, client settings and the Open WebUI environment values for your deployment.
- Scope records which Okta groups map to Open WebUI groups, which map to admin roles, and which groups are blocked from sign-in.
- Scope confirms your Open WebUI topology, including whether multiple replicas need Redis and PostgreSQL, since that changes how sign-out and sessions behave.
How we build
- We configure the Okta app and add a groups claim, then confirm the claim reaches Open WebUI in a test sign-in before group sync is enabled.
- We set just-in-time group creation and default sharing for new groups, and test a user who joins a group in Okta after first sign-in.
- We test sign-in for admin, standard and blocked users, and check that a revoked Okta group removes access in Open WebUI as designed.
How we hand over
- You receive the configuration record: Okta app settings, Open WebUI environment variables, group mapping tables and the test results behind them.
- Handover includes a runbook for adding a new Okta group, changing an admin mapping and rotating the client secret.
- Your team walks through the sign-in and group flows with us once, so the people who own identity can answer questions after the engagement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so Open WebUI releases can be checked against your Okta settings.
- Before each Open WebUI upgrade, we can retest sign-in and group sync in a non-production environment that matches your production setup.
- Support scope, response expectations and retainer terms are confirmed in writing, and you should ask for them explicitly in any quote.

