feat: Add OAuth Email Claim Variable

Add an `OAUTH_EMAIL_CLAIM` variable to override the default "email" claim value.
This commit is contained in:
Carter Roeser
2024-08-07 11:39:51 -07:00
parent dbe463a53d
commit d72d5d0e8e
3 changed files with 10 additions and 1 deletions
+6
View File
@@ -433,6 +433,12 @@ OAUTH_PICTURE_CLAIM = PersistentConfig(
os.environ.get("OAUTH_PICTURE_CLAIM", "picture"),
)
OAUTH_EMAIL_CLAIM = PersistentConfig(
"OAUTH_EMAIL_CLAIM",
"oauth.oidc.email_claim",
os.environ.get("OAUTH_EMAIL_CLAIM", "email"),
)
def load_oauth_providers():
OAUTH_PROVIDERS.clear()