feature/entra id authentication added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user