feat(docs): Explain token renewal (#5)

This commit is contained in:
hygienic-books 2024-10-05 23:20:52 +02:00
parent 1980dceb73
commit 8d3ff2683a

View File

@ -222,6 +222,15 @@ Note that we do not specify `"renewable":true` as periodic tokens are implicitly
Write down the generated `client_token`. Write down the generated `client_token`.
Token renewal works like so via the `/auth/token/renew-self` endpoint:
```
curl --silent --location --header 'X-Vault-Token: <token>' \
--request POST \
--data '{"token":"<token>"}' \
'https://f.q.d.n/v1/auth/token/renew-self'
```
Lastly don't forget to create some key value pairs underneath `kv/for_rbacgroup_remco` that the token can access. Lastly don't forget to create some key value pairs underneath `kv/for_rbacgroup_remco` that the token can access.
#### Token lifecycle management #### Token lifecycle management