Skip to content

feat(gateway): sign in to LiteLLM with company OIDC SSO - #7844

Draft
benjaminshafii wants to merge 1 commit into
devfrom
feat/sso-model-sign-in
Draft

benjaminshafii wants to merge 1 commit into
devfrom
feat/sso-model-sign-in

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

LiteLLM providers get a third member sign-in mode: the company's own OpenID Connect SSO (Okta, Auth0, ...), next to LiteLLM keys and Entra.

What problem does it solve?

Companies on a non-Microsoft identity provider had to hand out LiteLLM keys, so model access wasn't tied to their SSO.

What was the situation before?

The LiteLLM editor offered keys or Microsoft Entra sign-in only. There was no Okta or other OIDC option.

How is this implemented?

  • Flag ssoModelSignIn, off by default. Settings litellm.keySource = "oidc" + oidcIssuer, oidcScope. Migration 0226_gateway_oidc_sign_in.
  • gateway-upstreams/src/oidc.ts: issuer discovery that must match exactly, an https-only URL rule, token checks.
  • den-api inference-provider-oidc-oauth.ts + routes: tries prompt=none first and falls back to the sign-in page. A sign-in is stored only with a refresh token, a matching nonce, and an access token from that issuer.
  • Gateway refreshes tokens for LiteLLM JWT auth. With the flag off, the gateway and den-api member summaries drop these grants; stored credentials are kept.
  • den-web: "Company SSO sign-in" mode in the LiteLLM editor and on the connect page. Docs: litellm.mdx#company-sso-sign-in.

What else changed?

none

Release note

none

Evidence

ee/apps/den-api/test/api/litellm-oidc-sign-in.api.test.ts: before, no OIDC mode. After, a member signs in with no screen or through the sign-in page and gets the models. Bad tokens are never stored, and with the flag off the models are hidden. Also gateway/test/litellm-oidc-sign-in.test.ts and gateway-upstreams/test/oidc.test.ts. The identity provider is a stand-in; real Okta and LiteLLM aren't tested yet.

Design: P5, C3, C6. No screenshots yet (P10).

LiteLLM providers get a third member sign-in mode next to keys and Entra:
people sign in with the organization's own OpenID Connect identity provider
(Okta, Auth0, ...). An admin stores the issuer, a confidential OIDC web app
and one API scope; Den tries prompt=none first and falls back to an
interactive sign-in when the identity provider asks for one. The Gateway
renews tokens with the stored refresh token and sends the access token to
the proxy, which validates it with LiteLLM JWT auth.

Behind the ssoModelSignIn flag. With it off, the Gateway and Den drop these
providers' grants and refuse setup and sign-in; stored credentials are kept.
@mintlify

mintlify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Nov 29, 2026, 1:59 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Nov 29, 2026 1:59am UTC
openwork-den Ready Ready Preview Nov 29, 2026 1:59am UTC
openwork-landing Ready Ready Preview, v0 Nov 29, 2026 1:59am UTC

Request Review

This branch was successfully deployed

4 active deployments
Preview – openwork-den — 84994c47 Deployed Nov 29, 2026 by vercel[bot]
staging - packages/docs — 84994c47 Deployed Nov 29, 2026 by mintlify[bot]
Preview – openwork-app — 84994c47 Deployed Nov 29, 2026 by vercel[bot]
Preview – openwork-landing — 84994c47 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant