Forum Discussion
How BIG-IP Token/Authentication works ?
It is possible to modify the timeout once a token is obtained. This is achieved using the PATCH method.
Get a token (from a external auth provider in this example):
curl -s -k -u admin:changeme -X POST -H "Content-Type: application/json" -d '{ "username": "mrajagopal", "password": "changeme1234", "loginProviderName": "tmos"}' https://10.154.170.18/mgmt/shared/authn/login
Update the token with preferred timeout (max: 36000) value using the self-link key provided in the response:
curl -sk https://10.154.170.18/mgmt/shared/authz/tokens/Y43RS3JJLFXFH3FRT4PVZQOUOJ -H "X-F5-Auth-Token: Y43RS3JJLFXFH3FRT4PVZQOUOJ" -X PATCH -d '{"timeout" : 4200}'
The 'lastUpdateMicros' key in the response is the unix timestamp of when this token was modified as we did to adjust the timeout.
While the 'expirationMicros' key is the unix timestamp of when this token will expire.
- SupportUserAug 16, 2023
Nimbostratus
posted by mistake - please delete
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
