mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 03:38:57 -05:00
chore: format
This commit is contained in:
@@ -1357,9 +1357,8 @@ class OAuthManager:
|
||||
client = self.get_client(provider)
|
||||
if client is None:
|
||||
raise HTTPException(404)
|
||||
redirect_uri = (
|
||||
(client.server_metadata or {}).get('redirect_uri')
|
||||
or request.url_for('oauth_login_callback', provider=provider)
|
||||
redirect_uri = (client.server_metadata or {}).get('redirect_uri') or request.url_for(
|
||||
'oauth_login_callback', provider=provider
|
||||
)
|
||||
|
||||
kwargs = {}
|
||||
|
||||
@@ -7,9 +7,7 @@ _ALLOWED_STATIC_PATHS = (
|
||||
)
|
||||
|
||||
# External URL prefixes that are explicitly trusted for profile images
|
||||
_ALLOWED_URL_PREFIXES = (
|
||||
'https://www.gravatar.com/avatar/',
|
||||
)
|
||||
_ALLOWED_URL_PREFIXES = ('https://www.gravatar.com/avatar/',)
|
||||
|
||||
|
||||
def validate_profile_image_url(url: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user