mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-20 14:28:54 +00:00
Endpoints: Add key permission checker
This is a definite way to check if an authorized key is API or admin. The endpoint only runs if the key is valid in the first place to keep inline with the API's security model. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
7
endpoints/OAI/types/auth.py
Normal file
7
endpoints/OAI/types/auth.py
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Types for auth requests."""
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AuthPermissionResponse(BaseModel):
|
||||
permission: str
|
||||
Reference in New Issue
Block a user