Merge pull request #6250 from chrissphinx/patch-1

fix example that was out-of-date
This commit is contained in:
Becca Petrin 2019-02-28 10:28:24 -08:00 committed by GitHub
commit 0bf249dba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,11 +141,15 @@ group, the **group ID** or **group name** must be provided (e.g.
Example:
This policy allows users to change their own password given that the username
and password are defined in the `userpass` auth method.
and password are defined in the `userpass` auth method. The mount accessor
value (`auth_userpass_6671d643` in this example) can be read from the `sys/auth` endpoint.
```hcl
path "auth/userpass/users/{{identity.entity.aliases.auth_userpass_6671d643.name}}/password" {
path "auth/userpass/users/{{identity.entity.aliases.auth_userpass_6671d643.name}}" {
capabilities = [ "update" ]
allowed_parameters = {
"password" = []
}
}
```