properly enforce CSRF validation

see: https://github.com/ansible/tower/issues/2339
This commit is contained in:
Ryan Petrello
2018-06-27 15:50:07 -04:00
parent 39bc64d089
commit 504dfd32ee
5 changed files with 17 additions and 21 deletions

View File

@@ -39,9 +39,6 @@ class SessionAuthentication(authentication.SessionAuthentication):
def authenticate_header(self, request):
return 'Session'
def enforce_csrf(self, request):
return None
class LoggedOAuth2Authentication(OAuth2Authentication):