Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Update userpass.mdx into release/1.13.x #20204

Merged
merged 2 commits into from
Apr 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions website/content/docs/auth/userpass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,20 @@ management tool.

1. Enable the userpass auth method:

```text
```shell-session
$ vault auth enable userpass
```

This enables the userpass auth method at `auth/userpass`. To enable it at a different path, use the `-path` flag:

```shell-session
$ vault auth enable -path=<path> userpass
```

1. Configure it with users that are allowed to authenticate:

```text
$ vault write auth/userpass/users/mitchellh \
```shell-session
$ vault write auth/<userpass:path>/users/mitchellh \
password=foo \
policies=admins
```
Expand All @@ -81,6 +87,7 @@ management tool.
associated with the "admins" policy. This is the only configuration
necessary.


## API

The Userpass auth method has a full HTTP API. Please see the [Userpass auth
Expand Down