liquidz00 / Patcher

Fetch patch management data from Jamf Pro to generate comprehensive reports in both Excel and PDF formats
https://patcher.liquidzoo.io/
Apache License 2.0
11 stars 1 forks source link

[CCH-16] Bearer Token Lifetime checks #17

Closed liquidz00 closed 4 months ago

liquidz00 commented 4 months ago

Main changes in this pull request revolve around the check_token_lifetime() in utils.py and how it is implemented in the main script. The function will return False if lifetime is less than a minute, throws a warning if the lifetime is between 5-10 minutes.

Additional pytests have been created for this function, which all have passed as expected. Functionality has been tested in test deployment machines and is currently behaving as intended.

notion-workspace[bot] commented 4 months ago

Untitled