Skip to content

Commit 346f913

Browse files
author
Alexander Schrijver
committed
Instead of using **kwargs, use the full argument description of OneLogin_Saml2_Auth.login. Otherwise this broke backwards compatibility.
1 parent 1898c5d commit 346f913

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/onelogin/saml2/auth.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def login_post(self, return_to=None, **authn_kwargs):
418418

419419
return url, parameters
420420

421-
def login(self, return_to=None, **authn_kwargs):
421+
def login(self, return_to=None, force_authn=False, is_passive=False, set_nameid_policy=True, name_id_value_req=None):
422422
"""
423423
Initiates the SSO process.
424424
@@ -440,7 +440,10 @@ def login(self, return_to=None, **authn_kwargs):
440440
:returns: Redirection URL
441441
:rtype: string
442442
"""
443-
authn_request = self._create_authn_request(**authn_kwargs)
443+
authn_request = self._create_authn_request(
444+
force_authn=force_authn, is_passive=is_passive,
445+
set_nameid_policy=set_nameid_policy, name_id_value_req=name_id_value_req
446+
)
444447

445448
saml_request = authn_request.get_request()
446449
parameters = {'SAMLRequest': saml_request}

0 commit comments

Comments
 (0)