Projet

Général

Profil

0001-saml-return-a-405-response-if-SOAP-methods-are-not-c.patch

Frédéric Péters, 17 avril 2016 14:16

Télécharger (1,38 ko)

Voir les différences:

Subject: [PATCH] saml: return a 405 response if SOAP methods are not called
 with POST (#6782)

 src/authentic2/idp/saml/saml2_endpoints.py | 3 +++
 1 file changed, 3 insertions(+)
src/authentic2/idp/saml/saml2_endpoints.py
34 34
from django.utils.translation import ugettext as _, ugettext_noop as N_
35 35
from django.views.decorators.csrf import csrf_exempt
36 36
from django.views.decorators.cache import never_cache
37
from django.views.decorators.http import require_POST
37 38
from django.contrib.auth import BACKEND_SESSION_KEY, REDIRECT_FIELD_NAME
38 39
from django.conf import settings
39 40
from django.utils.encoding import smart_unicode
......
898 899
        pass
899 900

  
900 901

  
902
@require_POST
901 903
@never_cache
902 904
@csrf_exempt
903 905
def artifact(request):
......
1204 1206
        % profile.session.dump())
1205 1207

  
1206 1208

  
1209
@require_POST
1207 1210
@never_cache
1208 1211
@csrf_exempt
1209 1212
def slo_soap(request):
1210
-