mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 13:55:04 -02: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):
|
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):
|
def process_request(self, request):
|
||||||
if request.path.startswith('/sso'):
|
if request.path.startswith('/sso'):
|
||||||
# django-social keeps a list of backends in memory that it gathers
|
# django-social keeps a list of backends in memory that it gathers
|
||||||
|
|||||||
Reference in New Issue
Block a user