feat: auth bypass for dev and testing
ENVIRONMENT must be "local" and DISABLE_AUTH set for this to be active. Both of these default to production values to prevent this being enabled accidentally. Resolves #5
This commit is contained in:
parent
652dfb7b4a
commit
fa8439cc6c
3 changed files with 11 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ class Config(CustomBaseSettings):
|
|||
APP_VERSION: str = "0.1"
|
||||
ENVIRONMENT: Environment = Environment.PRODUCTION
|
||||
SECRET_KEY: SecretStr = ""
|
||||
DISABLE_AUTH: bool = False
|
||||
|
||||
CORS_ORIGINS: list[str] = ["*"]
|
||||
CORS_ORIGINS_REGEX: str | None = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue