diff options
author | Leif Johansson <leifj@sunet.se> | 2012-04-03 16:27:15 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-04-03 16:27:15 +0200 |
commit | 23dff8b3c6295c5be5eecee2383a86ec3a0ad5c7 (patch) | |
tree | ec7ceda9a70d354b5d03de7e01c71ac67fc94191 | |
parent | 03bcc96c54a277d1d791303e411a72fed8318439 (diff) |
no csrf for saml aq
-rw-r--r-- | coip/apps/saml2/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coip/apps/saml2/views.py b/coip/apps/saml2/views.py index 2fcde4f..ee62061 100644 --- a/coip/apps/saml2/views.py +++ b/coip/apps/saml2/views.py @@ -13,6 +13,7 @@ from django.http import HttpResponse, HttpResponseBadRequest from saml2.metadata import entity_descriptor from saml2.saml import NAME_FORMAT_URI from django.conf import settings +from django.views.decorators.csrf import csrf_exempt def get_full_path(request,path=None): if path == None: @@ -74,6 +75,7 @@ def metadata(request): ed = entity_descriptor(cnf, 0) return HttpResponse(content=ed,content_type="text/xml") +@csrf_exempt def aq(request): if request.method == 'POST': aa = server.Server(config=_config(request), log=logging, debug=1, stype="aa") |