mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
Added OAUTH_USE_PICTURE_CLAIM env var
Added OAUTH_USE_PICTURE_CLAIM to config.py Added check to oauth.py on OAUTH_USE_PICTURE_CLAIM, to decide whether to user the profile picture in the claim or the default user.png
This commit is contained in:
@@ -331,6 +331,12 @@ JWT_EXPIRES_IN = PersistentConfig(
|
||||
# OAuth config
|
||||
####################################
|
||||
|
||||
OAUTH_USE_PICTURE_CLAIM = PersistentConfig(
|
||||
"OAUTH_USE_PICTURE_CLAIM",
|
||||
"oauth.oidc.use_picture_claim",
|
||||
os.environ.get("OAUTH_USE_PICTURE_CLAIM", "True").lower() == "true",
|
||||
)
|
||||
|
||||
ENABLE_OAUTH_SIGNUP = PersistentConfig(
|
||||
"ENABLE_OAUTH_SIGNUP",
|
||||
"oauth.enable_signup",
|
||||
|
||||
Reference in New Issue
Block a user