File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33Enterprise-grade, database-driven form builder with approval workflows
44"""
55
6- __version__ = "0.5.13 "
6+ __version__ = "0.5.14 "
77__author__ = "Django Forms Workflows Contributors"
88__license__ = "LGPL-3.0-only"
99
Original file line number Diff line number Diff line change @@ -104,6 +104,23 @@ class SAMLACSView(View):
104104 Receives SAML responses from the IdP and authenticates the user.
105105 """
106106
107+ def _prepare_django_request (self , request ):
108+ """
109+ Prepare a Django request for python3-saml.
110+
111+ Returns a dict with the request data in the format expected by OneLogin_Saml2_Auth.
112+ """
113+ return {
114+ "https" : "on" if request .is_secure () else "off" ,
115+ "http_host" : request .META ["HTTP_HOST" ],
116+ "script_name" : request .META ["PATH_INFO" ],
117+ "server_port" : request .META .get (
118+ "SERVER_PORT" , "443" if request .is_secure () else "80"
119+ ),
120+ "get_data" : request .GET .copy (),
121+ "post_data" : request .POST .copy (),
122+ }
123+
107124 def post (self , request ):
108125 if not is_saml_available ():
109126 return HttpResponseBadRequest (
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " django-forms-workflows"
3- version = " 0.5.13 "
3+ version = " 0.5.14 "
44description = " Enterprise-grade, database-driven form builder with approval workflows and external data integration"
55license = " LGPL-3.0-only"
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments