I am trying to setup identity secrets engine to generate identity token, I am trying to create a role with below api call:
~ cat create_oidc_role.json
{
"key": "human_identity",
"ttl": "12h",
"template": "{\"azp\": \"spiffe://vault/{{identity.entity.name}}\"}"
}
➜ ~ curl \
--header "X-Vault-Token: REDUCTED" \
--request POST \
--data @create_oidc_role.json \
https://VAULT/v1/identity/oidc/role/human_identity
{"errors":["error parsing template JSON: invalid character '\"' after object key:value pair"]}
I am not sure what the json format is incorrect. I have validated it with online validator… Please help