Skip to content

Commit

Permalink
CiscoDuoSecurity Function App code update
Browse files Browse the repository at this point in the history
Fixed error : 400 Invalid request parameters ('maxtime' must be a timestamp in milliseconds)
  • Loading branch information
mnolan-ipsec authored Jun 16, 2023
1 parent 20e8ac4 commit 28a0d60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def process_auth_logs(admin_api: duo_client.Admin, state_manager: StateManager,
maxtime = int(time.time() - 120) * 1000
diff = maxtime - mintime
if(diff > 3600000):
maxtime = (int(mintime) + 3600) * 1000
maxtime = (int(mintime/1000) + 3600) * 1000

for event in get_auth_logs(admin_api, mintime, maxtime):
sentinel.send(event)
Expand Down
Binary file not shown.

0 comments on commit 28a0d60

Please sign in to comment.