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!
This commit is contained in:
parent
dfc8b37dc7
commit
6ea6844ef9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue