mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-04 01:48:57 +00:00
Render the "Delegate auth to upstream (PKCE passthrough)" toggle inside the OAuth fields, right after the OAuth Flow Type selector and only for the Interactive (PKCE) flow, instead of leaving it floating at the bottom of the form or buried in the Permission Management / Access Control section. It now sits next to the OAuth config it controls in both the create and edit MCP server forms. When the toggle is on, show a short notice explaining that clients authenticate directly with the upstream MCP server, that LiteLLM won't enforce its own API key/SSO on this route, and that it won't store user credentials, so the endpoint is reachable without a LiteLLM login. The existing internal-network warning still shows when passthrough is on for an internal-only server. The toggle, the passthrough notice, and the internal-network warning live in a single prop-less DelegateAuthToUpstreamField component that reads everything from the form, shared by both forms. Because the toggle is only mounted for the Interactive OAuth flow, the safety that forces the flag back to false for M2M or non-oauth2 auth happens at submit time in both forms; switching transport to stdio also clears it in handleTransportChange so the form store stays consistent. The separate none-auth oauth_passthrough toggle in the Permission Management section is unrelated and left untouched. |
||
|---|---|---|
| .. | ||
| e2e_tests | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| .env.development | ||
| .env.production | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| build_release_ui.sh | ||
| build_ui.sh | ||
| build_ui_custom_path.sh | ||
| CLAUDE.md | ||
| eslint-budgets.json | ||
| eslint-suppressions.json | ||
| eslint.config.mjs | ||
| knip.json | ||
| next.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| tsconfig.tsbuildinfo | ||
| ui_colors.json | ||
| vitest.config.ts | ||
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.