mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Use lowercase JSON keys for client_token
This commit is contained in:
@@ -22,7 +22,7 @@ type Secret struct {
|
|||||||
|
|
||||||
// Auth is the structure containing auth information if we have it.
|
// Auth is the structure containing auth information if we have it.
|
||||||
type SecretAuth struct {
|
type SecretAuth struct {
|
||||||
ClientToken string `json:"client_Token"`
|
ClientToken string `json:"client_token"`
|
||||||
Policies []string `json:"policies"`
|
Policies []string `json:"policies"`
|
||||||
Metadata map[string]string `json:"metadata"`
|
Metadata map[string]string `json:"metadata"`
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ type LogicalResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Auth struct {
|
type Auth struct {
|
||||||
ClientToken string `json:"client_Token"`
|
ClientToken string `json:"client_token"`
|
||||||
Policies []string `json:"policies"`
|
Policies []string `json:"policies"`
|
||||||
Metadata map[string]string `json:"metadata"`
|
Metadata map[string]string `json:"metadata"`
|
||||||
LeaseDuration int `json:"lease_duration"`
|
LeaseDuration int `json:"lease_duration"`
|
||||||
|
|||||||
Reference in New Issue
Block a user