From bc59853c4153ff7751203debab9469f4c82fbeaf Mon Sep 17 00:00:00 2001 From: MartijnBl Date: Wed, 19 Feb 2025 10:19:19 +0100 Subject: [PATCH] cast limit in to a string get_authentication_logcast limit in The API endpoint expects limit to be a string. --- duo_client/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/duo_client/admin.py b/duo_client/admin.py index 7c3d316..3ba041b 100644 --- a/duo_client/admin.py +++ b/duo_client/admin.py @@ -517,6 +517,8 @@ def get_authentication_log(self, api_version=1, **kwargs): # Sanity check maxtime as unix timestamp, then transform to string params['maxtime'] = '{:d}'.format(int(params['maxtime'])) + if "limit" in params: + params["limit"] = f"{int(params['limit'])}" response = self.json_api_call( 'GET',