feat: Enhance transaction model and dashboard with Azure OAuth integration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user