Use lowercase JSON keys for client_token
This commit is contained in:
parent
9b0df3c148
commit
ee6963ee01
|
@ -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"`
|
||||
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue