mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
Remove redundant methods from SocialAuthMiddleware class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user