From 9a7849adb1b7ce4396ada2a615003c67604e518f Mon Sep 17 00:00:00 2001 From: kalapathar Date: Wed, 21 Feb 2024 13:59:53 -0600 Subject: [PATCH] add txid and client_supports_verified_push --- duo_client/auth.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/duo_client/auth.py b/duo_client/auth.py index 2852eb80..8397ffc8 100644 --- a/duo_client/auth.py +++ b/duo_client/auth.py @@ -87,6 +87,7 @@ def preauth(self, username=None, user_id=None, ipaddr=None, + client_supports_verified_push=None, trusted_device_token=None): """ Determine if and with what factors a user may authenticate or enroll. @@ -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', @@ -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. @@ -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)