Spaces:
Sleeping
Sleeping
bigwolfe commited on
Commit ·
22cca55
1
Parent(s): 65b320d
Update gitignore and auth/config services
Browse files- .gitignore +3 -0
- backend/src/services/auth.py +1 -1
- backend/src/services/config.py +1 -1
.gitignore
CHANGED
|
@@ -53,3 +53,6 @@ data/
|
|
| 53 |
reproduce_auth_500.py
|
| 54 |
debug_list_notes.py
|
| 55 |
DEPLOY_TO_HF.md
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
reproduce_auth_500.py
|
| 54 |
debug_list_notes.py
|
| 55 |
DEPLOY_TO_HF.md
|
| 56 |
+
|
| 57 |
+
# Documentation
|
| 58 |
+
docs/fastmcp/
|
backend/src/services/auth.py
CHANGED
|
@@ -124,7 +124,7 @@ class AuthService:
|
|
| 124 |
# 1. Local Dev Token (Highest priority)
|
| 125 |
if self.config.enable_local_mode:
|
| 126 |
self.validators.append(
|
| 127 |
-
StaticTokenValidator(self.config.local_dev_token, "
|
| 128 |
)
|
| 129 |
|
| 130 |
# 2. ChatGPT Service Token
|
|
|
|
| 124 |
# 1. Local Dev Token (Highest priority)
|
| 125 |
if self.config.enable_local_mode:
|
| 126 |
self.validators.append(
|
| 127 |
+
StaticTokenValidator(self.config.local_dev_token, "demo-user")
|
| 128 |
)
|
| 129 |
|
| 130 |
# 2. ChatGPT Service Token
|
backend/src/services/config.py
CHANGED
|
@@ -28,7 +28,7 @@ class AppConfig(BaseModel):
|
|
| 28 |
)
|
| 29 |
local_dev_token: Optional[str] = Field(
|
| 30 |
default="local-dev-token",
|
| 31 |
-
description="Static token accepted in local mode
|
| 32 |
)
|
| 33 |
chatgpt_service_token: Optional[str] = Field(
|
| 34 |
default=None,
|
|
|
|
| 28 |
)
|
| 29 |
local_dev_token: Optional[str] = Field(
|
| 30 |
default="local-dev-token",
|
| 31 |
+
description="Static token accepted in local mode (maps to 'demo-user')",
|
| 32 |
)
|
| 33 |
chatgpt_service_token: Optional[str] = Field(
|
| 34 |
default=None,
|