mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user