-
-
Notifications
You must be signed in to change notification settings - Fork 465
Add authorization requirement to all API endpoints #911
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
Conversation
…derer' into add/auth-to-all-endpoints
…ormerlab/transformerlab-app into add/auth-to-all-endpoints
…ormerlab/transformerlab-app into add/auth-to-all-endpoints
…ormerlab/transformerlab-app into add/auth-to-all-endpoints
…ormerlab/transformerlab-app into add/auth-to-all-endpoints
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
api/api.py
Outdated
| app.include_router(batched_prompts.router, dependencies=[Depends(get_user_and_team)]) | ||
| app.include_router(remote.router, dependencies=[Depends(get_user_and_team)]) | ||
| app.include_router(fastchat_openai_api.router, dependencies=[Depends(get_user_and_team)]) | ||
| app.include_router(teams.router) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I submitted a question about why we don't apply standard auth on the teams endpoint on discord.
api/api.py
Outdated
| spawn_fastchat_controller_subprocess() | ||
|
|
||
| # Skip subprocess spawning in test mode | ||
| if os.environ.get("PYTEST_CURRENT_TEST") is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this one set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this
82a3fc4 to
35b0e8d
Compare
No description provided.