# Third-Party Login Failure For Github

**URL:** <https://forum.djangoproject.com/t/third-party-login-failure-for-github/40580>\
**Category:** Mystery Errors\
**Created:** [April 22, 2025, 7:59pm UTC](https://forum.djangoproject.com/t/third-party-login-failure-for-github/40580 "2025-04-22T19:59:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOHD123ANAS](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/mohd123anas/32/28032_2.png) [@MOHD123ANAS](https://forum.djangoproject.com/u/MOHD123ANAS)\
**Post date:** [April 22, 2025, 7:59pm UTC](https://forum.djangoproject.com/t/third-party-login-failure-for-github/40580/1 "2025-04-22T19:59:23Z")

</div>

Hi guys,

I’m trying to configure login via GitHub using Django allauth. I created an OAuth app on GitHub, added those credentials in the admin portal, and still getting this error.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/7/4/749d1219976deb51b205c30714fb7993e55dd529.png)

```auto
[23/Apr/2025 01:19:59] "GET / HTTP/1.1" 200 3721
[23/Apr/2025 01:20:03] "GET /accounts/login/ HTTP/1.1" 200 3304
[23/Apr/2025 01:20:10] "GET /accounts/github/login/?process=login HTTP/1.1" 200 1624
[23/Apr/2025 01:20:14] "POST /accounts/github/login/?process=login HTTP/1.1" 302 0
[23/Apr/2025 01:20:17] "GET /accounts/github/login/callback/??code=d677ed4m9d8faaaq221f&state=fEpzuCZEzXNDjQqi HTTP/1.1" 200 1320

```

**This is my settings code**

```auto
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # my-apps
    "visits",
    "commando",

    #Third part app
    'allauth_ui',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.socialaccount.providers.github',
    'widget_tweaks',
    'slippers',
]

SOCIALACCOUNT_PROVIDERS = {
    "github":{
        "VERIFIED_EMAIL": True
    }
}

```

Can anyone help me solve this error?
