log len of allowed emails

This commit is contained in:
msramalho
2023-03-09 17:05:46 +00:00
parent 6103b5a514
commit 67237b6fd1

View File

@@ -9,8 +9,8 @@ from fastapi.security import HTTPBasic, HTTPBasicCredentials, HTTPBearer, HTTPAu
GOOGLE_CHROME_APP_ID = os.environ.get("GOOGLE_CHROME_APP_ID")
assert len(GOOGLE_CHROME_APP_ID)>10, "GOOGLE_CHROME_APP_ID env variable not set"
ALLOWED_EMAILS = set([e.strip().lower() for e in os.environ.get("ALLOWED_EMAILS", "").split(",")])
logger.info(f"{ALLOWED_EMAILS=}")
assert len(GOOGLE_CHROME_APP_ID)>=1, "at least one ALLOWED_EMAILS is required from the env variable"
logger.info(f"{len(ALLOWED_EMAILS)=}")
basic_security = HTTPBasic()
bearer_security = HTTPBearer()