2017-09-08 02:06:55 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: auth disable - Command
|
2017-09-08 02:06:55 +00:00
|
|
|
description: |-
|
|
|
|
The "auth disable" command disables an auth method at a given path, if one
|
|
|
|
exists. This command is idempotent, meaning it succeeds even if no auth method
|
|
|
|
is enabled at the path.
|
|
|
|
---
|
|
|
|
|
|
|
|
# auth disable
|
|
|
|
|
|
|
|
The `auth disable` command disables an auth method at a given path, if one
|
|
|
|
exists. This command is idempotent, meaning it succeeds even if no auth method
|
|
|
|
is enabled at the path.
|
|
|
|
|
|
|
|
Once an auth method is disabled, it can no longer be used for authentication.
|
|
|
|
**All access tokens generated via the disabled auth method are immediately
|
|
|
|
revoked.** This command will block until all tokens are revoked.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Disable the auth method enabled at "userpass/":
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:06:55 +00:00
|
|
|
$ vault auth disable userpass/
|
|
|
|
Success! Disabled the auth method (if it existed) at: userpass/
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-01-22 20:05:41 +00:00
|
|
|
There are no flags beyond the [standard set of flags](/docs/commands)
|
2017-09-08 02:06:55 +00:00
|
|
|
included on all commands.
|