mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-13 18:36:44 +09:00
[Update] agent 호출 구조 변경
This commit is contained in:
parent
495b3a52da
commit
b7e6afb227
12 changed files with 267 additions and 343 deletions
30
main.py
30
main.py
|
|
@ -8,7 +8,7 @@ from lib.utils.is_html import is_html_url
|
|||
from lib.utils.read_txt import read_lines_between
|
||||
from lib.utils.progress_checker import save_progress, load_progress
|
||||
from lib.utils.env_checker import check_env_variables
|
||||
from lib.find_sso_list import find_sso_list
|
||||
from lib.get_sso_list import get_sso_list
|
||||
load_dotenv()
|
||||
|
||||
check_env_variables()
|
||||
|
|
@ -28,33 +28,7 @@ async def scan_one_url(url: str, skip_html_check: bool = False):
|
|||
# Backend에 스캔 시작 알림
|
||||
notify_backend(target_url)
|
||||
|
||||
await find_sso_list(target_url)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# # 5) 결과 출력
|
||||
# print("-" * 50)
|
||||
# print(f"🔗 Scanned URL: {url}\n")
|
||||
# print("🔐 Detected OAuth Providers and URLs:")
|
||||
# for entry in oauth_entries:
|
||||
# if "<" in entry.oauth_uri or "..." in entry.oauth_uri:
|
||||
# print(f"⚠️ WARNING: {entry.provider} URL may be masked or incomplete:\n{entry.oauth_uri}\n")
|
||||
# else:
|
||||
# print(f"- {entry.provider}: {entry.oauth_uri}")
|
||||
# print("-" * 50)
|
||||
|
||||
# # 6) CSV에 저장 (append)
|
||||
# csv_file = "./oauth_providers.csv"
|
||||
# file_exists = os.path.isfile(csv_file)
|
||||
# with open(csv_file, "a", newline="", encoding="utf-8") as f:
|
||||
# writer = csv.writer(f)
|
||||
# if not file_exists:
|
||||
# writer.writerow(["issuer", "provider", "oauth_uri"])
|
||||
# for entry in oauth_entries:
|
||||
# writer.writerow([url, entry.provider, entry.oauth_uri])
|
||||
# print(f"✅ OAuth providers saved to {csv_file}\n")
|
||||
print(await get_sso_list(target_url))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue