This commit is contained in:
@@ -921,7 +921,12 @@ async def oauth_callback_http(request: Request) -> JSONResponse | RedirectRespon
|
||||
redirect_uri = FRONTEND_URL
|
||||
|
||||
# 🎯 Стандартный OAuth flow: токен в URL для фронтенда
|
||||
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
|
||||
from urllib.parse import parse_qs, unquote, urlencode, urlparse, urlunparse
|
||||
|
||||
# 🔧 Декодируем redirect_uri если он URL-encoded
|
||||
if "%3A" in redirect_uri or "%2F" in redirect_uri:
|
||||
redirect_uri = unquote(redirect_uri)
|
||||
logger.info(f"🔧 Decoded redirect_uri: {redirect_uri}")
|
||||
|
||||
parsed_url = urlparse(redirect_uri)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user