mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
update vault login docs to cover stdin default (#14336)
This commit is contained in:
parent
5a8c389de9
commit
e06c90374d
1 changed files with 22 additions and 1 deletions
|
|
@ -35,7 +35,28 @@ the returned token is automatically unwrapped unless:
|
|||
|
||||
## Examples
|
||||
|
||||
By default, login uses a "token" method:
|
||||
By default, login uses a "token" method and reads from stdin:
|
||||
|
||||
```shell-session
|
||||
$ vault login
|
||||
Token (will be hidden):
|
||||
Success! You are now authenticated. The token information displayed below
|
||||
is already stored in the token helper. You do NOT need to run "vault login"
|
||||
again. Future Vault requests will automatically use this token.
|
||||
|
||||
Key Value
|
||||
--- -----
|
||||
token s.nDj4BB2tK8NaFffwBZBxyIa1
|
||||
token_accessor ZuaObqdTeCHZ4oa9HWmdQJuZ
|
||||
token_duration ∞
|
||||
token_renewable false
|
||||
token_policies ["root"]
|
||||
identity_policies []
|
||||
policies ["root"]
|
||||
```
|
||||
|
||||
Alternatively, the token may be provided as a command line argument (note that
|
||||
this may be captured by shell history or process listings):
|
||||
|
||||
```shell-session
|
||||
$ vault login s.3jnbMAKl1i4YS3QoKdbHzGXq
|
||||
|
|
|
|||
Loading…
Reference in a new issue