open-vault/website/pages/docs/auth/token.mdx
Jeff Escalante 8eed94b072
🌷 Docs Website Maintenance (#8985)
* website maintenance round
* improve docs, revert bug workaround as it was fixed
* boost memory
* remove unnecessary code
2020-05-21 13:18:17 -04:00

42 lines
1.1 KiB
Plaintext

---
layout: docs
page_title: Token - Auth Methods
sidebar_title: Tokens
description: The token store auth method is used to authenticate using tokens.
---
# Token Auth Method
The `token` method is built-in and automatically available at `/auth/token`. It
allows users to authenticate using a token, as well to create new tokens, revoke
secrets by token, and more.
When any other auth method returns an identity, Vault core invokes the
token method to create a new unique token for that identity.
The token store can also be used to bypass any other auth method:
you can create tokens directly, as well as perform a variety of other
operations on tokens such as renewal and revocation.
Please see the [token concepts](/docs/concepts/tokens) page dedicated
to tokens.
## Authentication
### Via the CLI
```shell-session
$ vault login token=<token>
```
### Via the API
The token is set directly as a header for the HTTP API. The header should be
either `X-Vault-Token: <token>` or `Authorization: Bearer <token>`.
## API
The Token auth method has a full HTTP API. Please see the
[Token auth method API](/api/auth/token) for more
details.