Forum Discussion
How BIG-IP Token/Authentication works ?
The token will timeout after 1200 seconds. All attempts to increase or remove that have been futile for me.
- rodolfosalgado_Jul 22, 2016Altostratus
Can you do as many calls as you want during this 1200 time window?
- ekaleidoJul 22, 2016Cirrus
That is my experience. If you create the token every time you call the API, you should get the same token until the 1200 seconds is up. So be sure to always generate the token and insert the token as the header and you'll be able to account for when it expires and becomes a new value.
- Satoshi_ToyosawMar 28, 2018Historic F5 Account
A different token is generated for every request as far as I checked. Tested on 12.1.2 and 13.0.0. The behaviour may be different in a different version. Please post the version number you tested if you can, so I can verify.
Here's a test one-liner:
for i in `seq 1 30`; do curl -sk -X POST -H "Content-type: application/json" \ https:///mgmt/shared/authn/login \ -d '{"username":";", "password":";", "loginProviderName":"tmos"}' | \ python -m json.tool | fgrep '"token": "' | sort | uniq -c; done
To get a list of currently available tokens, run:
curl -sku admin: https:///mgmt/shared/authz/tokens
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com