CiscoDevNet / FMCAnsible

GNU General Public License v3.0
20 stars 24 forks source link

Refreshing an Authentication Token #58

Open xibriz opened 1 year ago

xibriz commented 1 year ago

I experienced authentication problem on a long running playbook. Looking trough the code, it seems like there is no logic to refresh the authorization token after 30 minutes:

Ref FMC REST API authentication tokens are valid for 30 minutes, and can be refreshed up to three times.

https://www.cisco.com/c/en/us/td/docs/security/firepower/70/api/REST/firepower_management_center_rest_api_quick_start_guide_70/Connecting_With_A_Client.html#task_bdt_yd1_ccb