token accessor in vault code example

Example 1: lookup token information in vault

#Creation of token with Explicit TTL

vault token create --ttl=600

Example 2: lookup token information in vault

#Vault renew token duration

vault token renew --increment=30m <TOKEN>

Example 3: lookup token information in vault

#Lookup for Token Information in vault

vault token lookup <TOKEN>

#By default Duration is 768h and it comes from where? check with below command 
vault read sys/auth/token/tune

Tags:

Php Example