Merge pull request #1347 from cheahjs/feat/trusted-email-header

feat: allow authenticating with a trusted email header
This commit is contained in:
Timothy Jaeryang Baek
2024-04-02 09:11:25 -07:00
committed by GitHub
9 changed files with 158 additions and 99 deletions

View File

@@ -194,6 +194,7 @@ async def get_app_config():
"images": images_app.state.ENABLED,
"default_models": webui_app.state.DEFAULT_MODELS,
"default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS,
"trusted_header_auth": bool(webui_app.state.AUTH_TRUSTED_EMAIL_HEADER),
}