From 6ea6844ef9dfd5960b9453b376fe3e122d37ffb2 Mon Sep 17 00:00:00 2001 From: Hugues Malphettes Date: Thu, 13 Dec 2018 06:25:44 +0800 Subject: [PATCH] JWT API - List Roles: fix the path With vault-1.0.0 and vault-0.11.4 a different path is needed to list the jwt registered roles: ``` $ vault list auth/jwt/roles No value found at auth/jwt/roles/ $ vault list auth/jwt/role Keys ---- myrole ``` I hope this helps! --- website/source/api/auth/jwt/index.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/api/auth/jwt/index.html.md b/website/source/api/auth/jwt/index.html.md index febcfcf77..2ad2165c6 100644 --- a/website/source/api/auth/jwt/index.html.md +++ b/website/source/api/auth/jwt/index.html.md @@ -207,7 +207,7 @@ Lists all the roles that are registered with the plugin. | Method | Path | Produces | | :------- | :--------------------------- | :--------------------- | -| `LIST` | `/auth/jwt/roles` | `200 application/json` | +| `LIST` | `/auth/jwt/role` | `200 application/json` | ### Sample Request @@ -215,7 +215,7 @@ Lists all the roles that are registered with the plugin. $ curl \ --header "X-Vault-Token: ..." \ --request LIST \ - https://127.0.0.1:8200/v1/auth/jwt/roles + https://127.0.0.1:8200/v1/auth/jwt/role ``` ### Sample Response