mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
feat(schema): add token_validation and token_storage_ttl_seconds to LiteLLM_MCPServerTable
This commit is contained in:
parent
b84acc66a3
commit
f6ed98eff8
4 changed files with 13 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
-- Add OAuth token validation fields to LiteLLM_MCPServerTable
|
||||
-- AlterTable
|
||||
ALTER TABLE "LiteLLM_MCPServerTable"
|
||||
ADD COLUMN IF NOT EXISTS "token_validation" JSONB,
|
||||
ADD COLUMN IF NOT EXISTS "token_storage_ttl_seconds" INTEGER;
|
||||
|
|
@ -328,6 +328,8 @@ model LiteLLM_MCPServerTable {
|
|||
submitted_at DateTime?
|
||||
reviewed_at DateTime?
|
||||
review_notes String?
|
||||
token_validation Json?
|
||||
token_storage_ttl_seconds Int?
|
||||
|
||||
@@index([approval_status])
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,6 +328,8 @@ model LiteLLM_MCPServerTable {
|
|||
submitted_at DateTime?
|
||||
reviewed_at DateTime?
|
||||
review_notes String?
|
||||
token_validation Json?
|
||||
token_storage_ttl_seconds Int?
|
||||
|
||||
@@index([approval_status])
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,6 +328,10 @@ model LiteLLM_MCPServerTable {
|
|||
submitted_at DateTime?
|
||||
reviewed_at DateTime?
|
||||
review_notes String?
|
||||
// Per-user OAuth token validation rules: key-value pairs that must match fields
|
||||
// in the OAuth token response. Tokens that don't match are rejected with HTTP 403.
|
||||
token_validation Json?
|
||||
token_storage_ttl_seconds Int?
|
||||
|
||||
@@index([approval_status])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue