Fixed so that hash adding for local approval should happen sooner if device is moved out of OTP early. Also minor fixes with timestamping of hash additon to use local time instead of epoch, and str matching for local approval allow list finding

This commit is contained in:
=
2025-09-15 11:28:17 -04:00
parent 8098fc665c
commit df52a4f0b0
3 changed files with 66 additions and 9 deletions
+6 -1
View File
@@ -43,7 +43,12 @@ def getDestAllowlistFromClientID(url, clientid):
allowlists = getPolicyAllowlists(url,data.loc[0, "groupid"])
app_id = allowlists.loc[allowlists['name'].str.contains('localapproval', case=False, na=False), 'applicationid'].values[0]
matches = allowlists.loc[
allowlists['name'].str.contains('local', case=False, na=False) &
allowlists['name'].str.contains('approval', case=False, na=False),
'applicationid'
].values
app_id = matches[0] if len(matches) > 0 else None
return app_id