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:
parent
64e8b76a10
commit
6fb173da8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user