@@ -59,7 +59,8 @@ def prepare_for_authenticate(self, entityid=None, relay_state="",
59
59
nameid_format = NAMEID_FORMAT_PERSISTENT ,
60
60
scoping = None , consent = None , extensions = None ,
61
61
sign = None ,
62
- response_binding = saml2 .BINDING_HTTP_POST ):
62
+ response_binding = saml2 .BINDING_HTTP_POST ,
63
+ ** kwargs ):
63
64
""" Makes all necessary preparations for an authentication request.
64
65
65
66
:param entityid: The entity ID of the IdP to send the request to
@@ -72,14 +73,15 @@ def prepare_for_authenticate(self, entityid=None, relay_state="",
72
73
:param extensions: Possible extensions
73
74
:param sign: Whether the request should be signed or not.
74
75
:param response_binding: Which binding to use for receiving the response
76
+ :param kwargs: Extra key word arguments
75
77
:return: session id and AuthnRequest info
76
78
"""
77
79
78
80
destination = self ._sso_location (entityid , binding )
79
81
80
82
req = self .create_authn_request (destination , vorg , scoping ,
81
83
response_binding , nameid_format ,
82
- consent , extensions , sign )
84
+ consent , extensions , sign , ** kwargs )
83
85
_req_str = "%s" % req
84
86
85
87
logger .info ("AuthNReq: %s" % _req_str )
0 commit comments