docs: README.md에 인증서 설정 방법 추가

refactor: GoogleLoginHint.py에서 불필요한 import 제거 및 URL 수정 로직 개선
This commit is contained in:
암냥 2025-06-18 21:41:44 +09:00
commit 897173ba46
2 changed files with 19 additions and 6 deletions

View file

@ -1,5 +1,3 @@
import lib.target as target
from lib.report import save_report
import os
from urllib.parse import urlparse, parse_qs, urlencode, urlunparse
from dotenv import load_dotenv
@ -16,7 +14,6 @@ class GoogleLoginHint:
async def request(self, flow):
"""Google OAuth 요청을 가로채서 login_hint를 추가하거나 수정"""
req = flow.request
method = req.method
url = req.pretty_url
# Google OAuth 인증 URL인지 확인
@ -45,11 +42,10 @@ class GoogleLoginHint:
parsed_url.fragment
))
# 요청 URL 수정
# 요청 URL 수정 - URL과 호스트 모두 업데이트
flow.request.url = new_url
flow.request.pretty_url = new_url
print(f"🔄 Modified URL: {new_url}")
def _is_google_oauth_url(self, url):
"""Google OAuth URL인지 확인"""
google_oauth_domains = [