Skip to content
Advertisement

Is there a way to know expire vault client tokens?

I’m using https://www.vaultproject.io/docs/auth/approle.html to generate vault client tokens,but I want to know tokens expire state. Is that possible ?

Advertisement

Answer

You can get lease_duration and compare it with the current date time. If current date time is after lease_duration, token should be expired. Can you please try?

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement