Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control Model Access by IDP 'groups' #8164

Merged
merged 10 commits into from
Feb 1, 2025
Merged

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Feb 1, 2025

  • docs(token_auth.md): clarify title

  • refactor(handle_jwt.py): add jwt auth manager + refactor to handle groups

allows user to call model if user belongs to group with model access

  • refactor(handle_jwt.py): refactor to first check if service call then check user call

  • feat(handle_jwt.py): new enforce_team_access param

only allows user to call model if a team they belong to has model access

allows controlling user model access by team

  • fix(handle_jwt.py): fix error string, remove unecessary param

  • docs(token_auth.md): add controlling model access for jwt tokens via teams to docs

  • test: fix tests post refactor

  • fix: fix linting errors

  • fix: fix linting error

  • test: fix import error

Copy link

vercel bot commented Feb 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 5:59am

@krrishdholakia krrishdholakia merged commit 2147cad into main Feb 1, 2025
30 of 31 checks passed
@krrishdholakia krrishdholakia changed the title Litellm dev 01 31 2025 p2 Control Model Access by IDP 'groups' Feb 1, 2025
@krrishdholakia krrishdholakia deleted the litellm_dev_01_31_2025_p2 branch February 1, 2025 06:52
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