17 lines
454 B
Python
17 lines
454 B
Python
# scopes.api.auth.config
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
from typing import Any
|
|
from scopes.storage.db.postgres import StorageFactory
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file='.env', extra='ignore')
|
|
#, env_prefix='SCOPES_')
|
|
auth_method: str = 'oauth2'
|
|
jwt_key: str | None = None
|
|
jwt_atlgorithm: str = 'HS256'
|
|
|
|
settings = Settings()
|
|
|
|
auth_methods: dict[str, Any] = {}
|
|
|