Skip to content

Commit 6fea07b

Browse files
author
Roland Hedberg
committed
Added a keyword argument dictionary for binding specific arguments.
1 parent 344a7ad commit 6fea07b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/saml2/entity.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _issuer(self, entityid=None):
159159
format=NAMEID_FORMAT_ENTITY)
160160

161161
def apply_binding(self, binding, msg_str, destination="", relay_state="",
162-
response=False, sign=False):
162+
response=False, sign=False, **kwargs):
163163
"""
164164
Construct the necessary HTTP arguments dependent on Binding
165165
@@ -169,6 +169,7 @@ def apply_binding(self, binding, msg_str, destination="", relay_state="",
169169
:param destination: Where to send the message
170170
:param relay_state: Relay_state if provided
171171
:param response: Which type of message this is
172+
:param kwargs: response type specific arguments
172173
:return: A dictionary
173174
"""
174175
# unless if BINDING_HTTP_ARTIFACT
@@ -189,7 +190,7 @@ def apply_binding(self, binding, msg_str, destination="", relay_state="",
189190
info["url"] = str(destination)
190191
info["method"] = "GET"
191192
elif binding == BINDING_SOAP or binding == BINDING_PAOS:
192-
info = self.use_soap(msg_str, destination, sign=sign)
193+
info = self.use_soap(msg_str, destination, sign=sign, **kwargs)
193194
elif binding == BINDING_URI:
194195
info = self.use_http_uri(msg_str, typ, destination)
195196
elif binding == BINDING_HTTP_ARTIFACT:

0 commit comments

Comments
 (0)