Use lowercase JSON keys for client_token

This commit is contained in:
Seth Vargo
2015-04-24 12:00:00 -04:00
parent bda397be2c
commit 5ee6b5edfa
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"`