GitHub OAuth
Set up GitHub authentication for your Conduit application.
Prerequisites
- GitHub account
- Conduit with Authentication module running
Step 1: Create GitHub OAuth App
- Go to GitHub > Settings > Developer settings
- Click OAuth Apps > New OAuth App
- Fill in application details:
- Application name: Your app name
- Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/hook/authentication/github
- Click Register application
Step 2: Get Credentials
After registration:
- Note your Client ID
- Click Generate a new client secret
- Save the Client Secret (shown only once)
Step 3: Configure Conduit
- Open Admin Panel > Authentication > Settings
- Enable GitHub provider
- Enter Client ID and Client Secret
- Save configuration
Step 4: Test Authentication
Get Auth URL
curl -X GET 'http://localhost:3000/authentication/init/github'
Complete Flow
- Navigate to returned URL
- Authorize with GitHub
- Conduit handles callback
Production Configuration
Update callback URL for production:
https://yourdomain.com/hook/authentication/github
Scopes Requested
user:email- Access email addressesread:user- Access profile information