Github OAuth Login Guide
Enable login with GitHub to simplify registration and improve trust for your WuWei users — especially useful for technical users like developers or students in programming-related courses.
Set Up GitHub OAuth App
To integrate GitHub login, create a new OAuth application in your GitHub developer settings.
Register an OAuth App
(1) Go to the GitHub Developer Settings
(2) Under OAuth Apps, click New OAuth App
(3) Fill in the app details:
- Application name: WuWei (or your platform name)
- Homepage URL:
https://{your-domain} - Authorization callback URL:
https://{your-domain}/oauth/github/callback
(4) Click Register Application
(5) After creation, GitHub will show:
- Client ID
- Client Secret (click Generate a new client secret if needed)
Enable GitHub OAuth in WuWei
(1) Log in to the WuWei Admin Panel
(2) Go to: Settings → OAuth Settings → Github
(3) Enable Github OAuth Login
(4) Fill in the required fields:
- Client ID
- Client Secret
(5) Click Submit to save your settings
GitHub Login is Now Live
Your users will now see a GitHub icon on the login and registration pages. Upon login, WuWei will use GitHub’s OAuth API to authenticate and create or link the user account.
Testing Tips
- Use a test GitHub account to verify the flow
- Confirm the callback URL matches exactly
- If login fails, double-check the client secret and redirect URI
- You can monitor logins from GitHub → Developer Settings → Your OAuth App
Security Notes
- WuWei uses GitHub’s official OAuth 2.0 flow
- Only basic user info is retrieved (GitHub id, name, email)
- GitHub passwords are never handled or stored by WuWei
- All communication occurs over HTTPS
