feat: Enhance transaction model and dashboard with Azure OAuth integration

This commit is contained in:
2026-05-10 22:36:13 +12:00
parent d50c1c5bba
commit 9130629b58
10 changed files with 403 additions and 26 deletions
+6 -2
View File
@@ -11,14 +11,18 @@ load_dotenv(PROJECT_ROOT / ".env")
class Settings:
def __init__(self) -> None:
self.session_secret_key = getenv("SESSION_SECRET_KEY", "change-me-in-production")
self.session_secret_key = getenv(
"SESSION_SECRET_KEY", "change-me-in-production"
)
self.azure_tenant_id = getenv("AZURE_TENANT_ID")
self.azure_client_id = getenv("AZURE_CLIENT_ID")
self.azure_client_secret = getenv("AZURE_CLIENT_SECRET")
@property
def azure_configured(self) -> bool:
return bool(self.azure_tenant_id and self.azure_client_id and self.azure_client_secret)
return bool(
self.azure_tenant_id and self.azure_client_id and self.azure_client_secret
)
@lru_cache