mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
🔒 feat: MCP OAuth Config for Metadata Parameters (#8691)
* fix(mcp): add default metadata for pre-configured oauth * removed lingering comment * added configurable options & jest unit tests * Update handler.test.ts * Update handler.ts --------- Co-authored-by: Alex <aleksander.chernyavskiy@seafar.eu> Co-authored-by: Danny Avila <danacordially@gmail.com>
This commit is contained in:
parent
5eed5009e9
commit
056172f007
3 changed files with 213 additions and 2 deletions
|
|
@ -36,6 +36,14 @@ const BaseOptionsSchema = z.object({
|
|||
redirect_uri: z.string().url().optional(),
|
||||
/** Token exchange method */
|
||||
token_exchange_method: z.nativeEnum(TokenExchangeMethodEnum).optional(),
|
||||
/** Supported grant types (defaults to ['authorization_code', 'refresh_token']) */
|
||||
grant_types_supported: z.array(z.string()).optional(),
|
||||
/** Supported token endpoint authentication methods (defaults to ['client_secret_basic', 'client_secret_post']) */
|
||||
token_endpoint_auth_methods_supported: z.array(z.string()).optional(),
|
||||
/** Supported response types (defaults to ['code']) */
|
||||
response_types_supported: z.array(z.string()).optional(),
|
||||
/** Supported code challenge methods (defaults to ['S256', 'plain']) */
|
||||
code_challenge_methods_supported: z.array(z.string()).optional(),
|
||||
})
|
||||
.optional(),
|
||||
customUserVars: z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue