1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

Remove redundant methods from SocialAuthMiddleware class

This commit is contained in:
beeankha 2019-05-15 12:54:00 -04:00
parent 64e8b76a10
commit 6fb173da8a

View File

@ -18,13 +18,6 @@ from social_django.middleware import SocialAuthExceptionMiddleware
class SocialAuthMiddleware(SocialAuthExceptionMiddleware):
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
response = self.process_request(request)
return response
def process_request(self, request):
if request.path.startswith('/sso'):
# django-social keeps a list of backends in memory that it gathers