Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add txid in auth and client_supports_verified_push in preauth #257

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion duo_client/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def preauth(self,
username=None,
user_id=None,
ipaddr=None,
client_supports_verified_push=None,
AaronAtDuo marked this conversation as resolved.
Show resolved Hide resolved
trusted_device_token=None):
"""
Determine if and with what factors a user may authenticate or enroll.
Expand All @@ -100,6 +101,8 @@ def preauth(self,
params['user_id'] = user_id
if ipaddr is not None:
params['ipaddr'] = ipaddr
if client_supports_verified_push is not None:
params['client_supports_verified_push'] = client_supports_verified_push
if trusted_device_token is not None:
params['trusted_device_token'] = trusted_device_token
response = self.json_api_call('POST',
Expand All @@ -117,7 +120,8 @@ def auth(self,
display_username=None,
pushinfo=None,
device=None,
passcode=None):
passcode=None,
txid=None):
"""
Perform second-factor authentication for a user.

Expand Down Expand Up @@ -156,6 +160,8 @@ def auth(self,
params['device'] = device
if passcode is not None:
params['passcode'] = passcode
if txid is not None:
params['txid'] = txid
response = self.json_api_call('POST',
'/auth/v2/auth',
params)
Expand Down
Loading