Vault | Python SDK | JWT Endpoints
JWT Endpoints
JWT Retrieve
Vault.jwk_get(id, version)Retrieve a key in JWK format.
response = vault.jwk_get("pvi_p6g5i3gtbvqvc3u6zugab6qs6r63tqf5")
JWT Sign
Vault.jwt_sign(id, payload)Sign a JSON Web Token (JWT) using a key.
response = vault.jwt_sign(
id="pvi_p6g5i3gtbvqvc3u6zugab6qs6r63tqf5",
payload="{\"sub\": \"1234567890\",\"name\": \"John Doe\",\"admin\": true}"
)
JWT Verify
Vault.jwt_verify(jws)Verify the signature of a JSON Web Token (JWT).
response = vault.jwt_verify(jws="ewogICJhbGciO...")