Use lowercase JSON keys for client_token

This commit is contained in:
Seth Vargo 2015-04-24 12:00:00 -04:00
parent 9b0df3c148
commit ee6963ee01
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ type Secret struct {
// Auth is the structure containing auth information if we have it.
type SecretAuth struct {
ClientToken string `json:"client_Token"`
ClientToken string `json:"client_token"`
Policies []string `json:"policies"`
Metadata map[string]string `json:"metadata"`

View file

@ -136,7 +136,7 @@ type LogicalResponse struct {
}
type Auth struct {
ClientToken string `json:"client_Token"`
ClientToken string `json:"client_token"`
Policies []string `json:"policies"`
Metadata map[string]string `json:"metadata"`
LeaseDuration int `json:"lease_duration"`