- On your Github user settings, under "Developer settings" go to “OAuth Apps”
- Click on "Register a new application"
- Enter any name for the application name, e.g. "OSF Github Addon (local)"
- In the "Homepage URL" field, enter
http://localhost:5000/ - In the Authorization Callback URL field, enter
http://localhost:5000/oauth/callback/github/. - Submit the form.
- Make a note of your Client ID and Client Secret, and fill them into GV admin.
To test Github webhooks, your development server must be exposed to the web using a service like ngrok:
- brew install ngrok
- ngrok 5000
- Copy forwarding address to addons/github/settings/local.py:HOOK_DOMAIN