# Github authentication redirect error

**URL:** <https://meta.discourse.org/t/github-authentication-redirect-error/157718>\
**Category:** Product Support\
**Created:** [July 14, 2020, 4:17pm UTC](https://meta.discourse.org/t/github-authentication-redirect-error/157718 "2020-07-14T16:17:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iamtunde](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamtunde/32/139960_2.png) [@iamtunde](https://meta.discourse.org/u/iamtunde)\
**Post date:** [July 14, 2020, 4:17pm UTC](https://meta.discourse.org/t/github-authentication-redirect-error/157718/1 "2020-07-14T16:17:50Z")

</div>

Hello Friends, a friendly newbie here.

I have this problem with configuring login with Github on my discourse installation, after providing the necessary API keys required in the **Admin \> Settings \> Login** page in the github setup section.

Clicking on the Github login option redirects to a 404 page and returns the screenshot below.

and this in the URL bar  
`https://MYDOMAIN/auth/oauth2_basic/callback?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%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=29b1f640d906a3bf4d92a1fe5846af740eea49adbfbfb65c`

 ![Screenshot from 2020-07-14 17-14-26](https://global.discourse-cdn.com/meta/original/3X/1/1/11eb448be3249df27f2ce56d7af98c1b3f5d3879.png)

---

_[View the full topic](https://meta.discourse.org/t/github-authentication-redirect-error/157718)._
