Merge pull request #12376 from MushroomLamp-COB/main

feat: Add option to disable OAuth profile pictures
This commit is contained in:
Timothy Jaeryang Baek
2025-04-02 19:16:36 -07:00
committed by GitHub
2 changed files with 47 additions and 34 deletions

View File

@@ -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",