DVCS connection to GitHub produces blank page
Symptoms
When configuring a DVCS connection to GitHub, you can inadvertently specify an incorrect URL while generating the OAuth tokens. More specifically, when associating the DVCS connection at Step 2 point 10 on the document for Linking a Bitbucket or GitHub repository with JIRA using the wrong URL, you will get a blank page
The following appears in URL bar:
https://not_a_correct_url.atlassian.net/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch
the "not_a_correct_url.atlassian.net" example above is incorrect URL entered on the GitHub configuration
Example
When setting up the GitHub OAuth connection Both the Homepage URL and the Authorization Callback URL are supposed to be the JIRA instance BASE URL but you can enter something like the following:
Resolution
Confirm that the Homepage URL and the Authorization callback URL are the same, and are your Base URL in you GitHub settings
Correct:- Homepage URL: https://example.atlassian.net
- Authorization callback URL: https://example.atlassian.net
Incorrect:
- Either or both of the URL's are: https://example.atlassian.net/secure/Dashboard.jspa
OR
- Homepage URL: https://example.atlassian.net
- Authorization callback URL: https://anything_not_matching_the_homepage_url.net