providers/saml: fix CSRF errors with POST binding

This commit is contained in:
Jens Langhammer
2020-02-28 10:50:16 +01:00
parent 81b66ecdcd
commit 64f15eadbd
2 changed files with 5 additions and 1 deletions

View File

@ -125,6 +125,10 @@ class LoginBeginView(AccessRequiredView):
)
)
@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
@method_decorator(csrf_exempt)
def get(self, request: HttpRequest, application: str) -> HttpResponse:
"""Handle REDIRECT bindings"""