omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Django 1.10 & SocialAuthExceptionMiddleware: TypeError: object() takes no parameters #1048

Closed macolo closed 8 years ago

macolo commented 8 years ago

Adding the SocialAuthExceptionMiddleware from PSA results in a TypeError: object() takes no parameters error.

PSA: 0.2.21 Django: 1.10.2

Documentation: http://python-social-auth.readthedocs.io/en/latest/configuration/django.html?highlight=SocialAuthExceptionMiddleware#exceptions-middleware

I also see this seems to have been fixed (?): https://github.com/omab/python-social-auth/issues/953

MIDDLEWARE = [
    'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    'social.apps.django_app.middleware.SocialAuthExceptionMiddleware',
]
macolo commented 8 years ago

Ok, the reason for this to not work yet is that the PR is not merged yet: https://github.com/omab/python-social-auth/pull/1031