I'm trying to renew token and trying to output token info. How can i get token_lookup details using hvac.
checked with the following without any luck.
VAULT_URL = "https://vault.com"
VAULT_TOKEN = ".sasassasas"
client = hvac.Client(url=VAULT_URL, verify=False, token=VAULT_TOKEN)
auth = client.is_authenticated()
print(auth)
response = client.read(path="secret/apps/USERNAME/v1")
print(response)
renew_state = client.renew_token()
print(renew_state)
lookup = client.lookup_token(token=VAULT_TOKEN)
print(lookup). ## this one failed with
hvac.exceptions.Forbidden: 1 error occurred: