Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit db68bef

Browse files
author
Grace Yim
committed
Add old params from ToopherIframe.auth_uri
1 parent 29a1fad commit db68bef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

toopher/toopher_iframe.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def __init__(self, key, secret, api_uri=None):
2424
api_uri = api_uri if api_uri else DEFAULT_BASE_URL
2525
self.base_uri = api_uri.rstrip('/')
2626

27-
def get_authentication_url(self, username, reset_email='', request_token='', action_name='Log In', requester_metadata='', **kwargs):
27+
def get_authentication_url(self, username, reset_email='', request_token='', action_name='Log In',
28+
requester_metadata='', automation_allowed=False, challenge_required=False,
29+
allow_inline_pairing=True, **kwargs):
2830
if not 'ttl' in kwargs:
2931
ttl = DEFAULT_IFRAME_TTL
3032
else:
@@ -35,7 +37,10 @@ def get_authentication_url(self, username, reset_email='', request_token='', act
3537
'reset_email':reset_email,
3638
'action_name':action_name,
3739
'session_token':request_token,
38-
'requester_metadata':requester_metadata
40+
'requester_metadata':requester_metadata,
41+
'automation_allowed': automation_allowed,
42+
'challenge_required': challenge_required,
43+
'allow_inline_pairing': allow_inline_pairing
3944
}
4045
params.update(kwargs)
4146

0 commit comments

Comments
 (0)