From ee6963ee013a6e91a2cf30fdb8bccbfb86b151d7 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 24 Apr 2015 12:00:00 -0400 Subject: [PATCH] Use lowercase JSON keys for client_token --- api/secret.go | 2 +- http/logical.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/secret.go b/api/secret.go index 01a4b0a5b..aef4958ba 100644 --- a/api/secret.go +++ b/api/secret.go @@ -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"` diff --git a/http/logical.go b/http/logical.go index c7904a912..dfa8ada04 100644 --- a/http/logical.go +++ b/http/logical.go @@ -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"`