feature/entra id authentication added

This commit is contained in:
2026-01-15 21:32:35 +01:00
parent 5bbec0e240
commit 2f93fb6cb5
13 changed files with 465 additions and 11 deletions

View File

@@ -25,6 +25,17 @@ class Settings(BaseSettings):
RATE_LIMIT_REQUESTS: int = 10
RATE_LIMIT_WINDOW: int = 60
# Microsoft Entra ID
ENTRA_TENANT_ID: Optional[str] = None
ENTRA_CLIENT_ID: Optional[str] = None
ENTRA_CLIENT_SECRET: Optional[str] = None
ENTRA_REDIRECT_URI: str = "http://localhost:3000/auth/callback"
# JWT
JWT_SECRET: str = "change-this-in-production-use-a-secure-random-string"
JWT_ALGORITHM: str = "HS256"
JWT_EXPIRY_HOURS: int = 24
class Config:
env_file = ".env"
case_sensitive = True