How dowerarts/codebuddy-login-github works
This Node.js automation reads account records, logs into GitHub (including optional 2FA), completes CodeBuddy’s GitHub-broker OAuth flow, and saves resulting cookies. Its internal layers cover account orchestration, request configuration, and result handling. The README documents proxy rotation, randomized identity headers, concurrency and delay controls, and failed-account tracking. Excerpts are partial; the diagram omits undocumented internal call wiring and treats the Router9 endpoints in the sampled source as a separate optional integration.
Main entry points: github-login.js Main runner · codebuddy.txt Account records
Components 18
Account workflow
- Main runner
github-login.js - Account handling
github-login.js - Cookie sessions
github-login.js - Problem account log
github-login.js - Run summary
github-login.js
GitHub login
- GitHub authentication
github-login.js - 2FA verification
github-login.js
CodeBuddy OAuth
- CodeBuddy session setup
github-login.js - Risk context
github-login.js - OAuth completion
github-login.js
Runtime support
- Runtime settings
github-login.js - Proxy selection
github-login.js
Other components
- Operator
- Account records
codebuddy.txt - GitHub
- Keycloak broker
- CodeBuddy
- Router9 OAuth API
Connections 20
- Operator → Main runner: starts
- Account records → Main runner: provides accounts
- Main runner → Runtime settings: loads settings
- Main runner → Proxy selection: selects proxy
- Main runner → Account handling: processes accounts
- Account handling → GitHub authentication: starts login
- GitHub authentication → GitHub: requests login
- GitHub authentication → 2FA verification: handles 2FA
- 2FA verification → GitHub: submits code
- Account handling → CodeBuddy session setup: starts OAuth
- CodeBuddy session setup → CodeBuddy: initializes session
- CodeBuddy session setup → Risk context: posts context
- Risk context → CodeBuddy: requests risk context
- CodeBuddy session setup → Keycloak broker: opens broker flow
- Keycloak broker → GitHub: redirects for login
- OAuth completion → CodeBuddy: completes OAuth
- Account handling → Cookie sessions: saves cookies
- Account handling → Problem account log: records failures
- Main runner → Run summary: reports results
- Main runner → Router9 OAuth API: calls optional API