Closed macolo closed 8 years ago
Adding the SocialAuthExceptionMiddleware from PSA results in a TypeError: object() takes no parameters error.
TypeError: object() takes no parameters
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', ]
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
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