网淘吧来吧,欢迎您!

Oauth Helper技能使用说明

2026-03-30 新闻来源:网淘吧 围观:10
电脑广告
手机广告

OAuth助手

通过Telegram确认实现OAuth登录自动化。支持7大主流提供商。

支持的提供商

提供商状态检测域名
谷歌accounts.google.com
苹果appleid.apple.com
微软login.microsoftonline.com, login.live.com
GitHubgithub.com/login/oauth
Discorddiscord.com/oauth2
微信open.weixin.qq.com
QQgraph.qq.com

前提条件

  1. Clawd浏览器已登录OAuth提供商(一次性设置)
  2. Telegram频道已配置

核心工作流程

流程A:包含多个OAuth选项的登录页面

当用户请求登录网站时:

Oauth Helper

1. Open website login page
2. Scan page for available OAuth buttons
3. Send Telegram message:
   "🔐 [Site] supports these login methods:
    1️⃣ Google
    2️⃣ Apple  
    3️⃣ GitHub
    Reply with number to choose"
4. Wait for user reply (60s timeout)
5. Click the selected OAuth button
6. Enter Flow B

流程B:OAuth授权页面

当处于OAuth提供商的页面时:

1. Detect OAuth page type (by URL)
2. Extract target site info
3. Send Telegram: "🔐 [Site] requests [Provider] login. Confirm? Reply yes"
4. Wait for "yes" (60s timeout)
5. Execute provider-specific click sequence
6. Wait for redirect back to original site
7. Send: "✅ Login successful!"

检测模式

谷歌

URL patterns:
- accounts.google.com/o/oauth2
- accounts.google.com/signin/oauth
- accounts.google.com/v3/signin

苹果

URL patterns:
- appleid.apple.com/auth/authorize
- appleid.apple.com/auth/oauth2

微软

URL patterns:
- login.microsoftonline.com/common/oauth2
- login.microsoftonline.com/consumers
- login.live.com/oauth20

GitHub

URL patterns:
- github.com/login/oauth/authorize
- github.com/login
- github.com/sessions/two-factor

Discord

URL patterns:
- discord.com/oauth2/authorize
- discord.com/login
- discord.com/api/oauth2

微信

URL patterns:
- open.weixin.qq.com/connect/qrconnect
- open.weixin.qq.com/connect/oauth2

按提供商的点击序列

URL patterns:
- graph.qq.com/oauth2.0/authorize
- ssl.xui.ptlogin2.qq.com
- ui.ptlogin2.qq.com

谷歌

苹果

Account selector: [data-identifier], .JDAKTe
Auth buttons: button:has-text("Allow"), button:has-text("Continue")

微软

Email input: input[type="email"], #account_name_text_field
Password: input[type="password"], #password_text_field  
Continue: button#sign-in, button:has-text("Continue")
Trust device: button:has-text("Trust")

GitHub

Account selector: .table-row[data-test-id]
Email input: input[name="loginfmt"]
Password: input[name="passwd"]
Next: button#idSIButton9
Accept: button#idBtn_Accept

Discord

Email: input#login_field
Password: input#password
Sign in: input[type="submit"]
Authorize: button[name="authorize"]
2FA: input#app_totp

微信

Email: input[name="email"]
Password: input[name="password"]
Login: button[type="submit"]
Authorize: button:has-text("Authorize")

QQ

Method: QR code scan
- Screenshot QR code to user
- Wait for mobile scan confirmation
- Detect page redirect

QQ

Method: QR code or password login
QR: Screenshot to user
Password mode:
  - Switch: a:has-text("密码登录")
  - Username: input#u
  - Password: input#p
  - Login: input#login_button

OAuth 按钮检测

在登录页面扫描以下选择器:

提供商选择器常见文本
Google[data-provider="google"],.google-btn"通过 Google 继续"
Apple[data-provider="apple"],.apple-btn"通过 Apple 登录"
Microsoft[data-provider="microsoft"]"通过 Microsoft 登录"
GitHub[data-provider="github"]"通过 GitHub 继续"
Discord[data-provider="discord"]"通过 Discord 登录"
微信.wechat-btn,img[src*="wechat"]"微信登录"
QQ.qq-btn,img[src*="qq"]"QQ登录"

一次性设置

在clawd浏览器中登录每个提供商:

# Google
browser action=navigate profile=clawd url=https://accounts.google.com

# Apple
browser action=navigate profile=clawd url=https://appleid.apple.com

# Microsoft  
browser action=navigate profile=clawd url=https://login.live.com

# GitHub
browser action=navigate profile=clawd url=https://github.com/login

# Discord
browser action=navigate profile=clawd url=https://discord.com/login

# WeChat/QQ - Use QR scan, no pre-login needed

错误处理

  • 无"是"回复 → 取消并通知用户
  • 需要双重验证 → 提示用户手动输入验证码
  • 二维码超时 → 重新截图新的二维码
  • 登录失败 → 截图并发送给用户用于调试

使用示例

User: Login to Kaggle for me

Agent:
1. Navigate to kaggle.com/account/login
2. Detect Google/Facebook/Yahoo options
3. Send: "🔐 Kaggle supports:
   1️⃣ Google
   2️⃣ Facebook
   3️⃣ Yahoo
   Reply number to choose"
4. User replies: 1
5. Click Google login
6. Detect Google OAuth page
7. Send: "🔐 Kaggle requests Google login. Confirm? Reply yes"
8. User replies: yes
9. Select account, click Continue
10. Send: "✅ Logged into Kaggle!"

版本历史

  • v1.0.0 - 初始版本,包含7个OAuth提供商

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第349379名访客 今日有175篇新文章/评论