How to obtain Github OAuth Client ID and Secret

1. Log into Github, go to your account settings and click Register a New Application.

Screen_Shot_2017-07-13_at_1.48.49_PM.png

2. Fill in the application name (it can be anything, though your users will see it during the sign in flow). In Homepage URL, put your account’s authorization domain, found in the authorization domain section of the Cloudflare Access dashboard. It is likely https://something.cloudflareaccess.com. In Authorization callback URL, put your authorization domain followed by /cdn-cgi/access/callback. Click Register Application.

Screen_Shot_2017-07-13_at_1.51.27_PM.png

3. Copy your OAuth ID and secret and paste them in the Cloudflare dashboard to finish connecting Github.

Troubleshooting

Do you see a 404 page and does the URL contain:

error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application

No worries, this is super quick to fix. Here is what you need to do.

Go back to your account settings: https://github.com/settings/developers

Click on the OAuth application you setup for Cloudflare Access to edit it.

In the field that says Application Callback URL, input your authorization domain followed by /cdn-cgi/access/callback. It will look something like https://dani.cloudflareaccess.com/cdn-cgi/access/callback.

Click update application.

 

 

Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk