mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 00:33:28 -04:00
Merge pull request #1326 from hashicorp/sethvargo/hint_noreauth
Hint that you don't need to run auth twice
This commit is contained in:
commit
28272ca629
1 changed files with 5 additions and 1 deletions
|
|
@ -228,7 +228,11 @@ func (c *AuthCommand) Run(args []string) int {
|
|||
policies = append(policies, v.(string))
|
||||
}
|
||||
|
||||
output := "Successfully authenticated!"
|
||||
output := "Successfully authenticated! You are now logged in."
|
||||
if method != "" {
|
||||
output += "\nThe token below is already saved in the session. You do not"
|
||||
output += "\nneed to \"vault auth\" again with the token."
|
||||
}
|
||||
output += fmt.Sprintf("\ntoken: %s", secret.Data["id"])
|
||||
output += fmt.Sprintf("\ntoken_duration: %s", secret.Data["ttl"].(json.Number).String())
|
||||
if len(policies) > 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue