mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
CE backport: Rename token_auth_metadata to alias_metadata (#9237)
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
This commit is contained in:
parent
d173b10eb1
commit
ba4b639445
3 changed files with 4 additions and 4 deletions
|
|
@ -636,7 +636,7 @@ func TestAwsEc2_RoleCrud(t *testing.T) {
|
|||
}
|
||||
|
||||
if constants.IsEnterprise {
|
||||
expected["token_auth_metadata"] = map[string]string{}
|
||||
expected["alias_metadata"] = map[string]string{}
|
||||
}
|
||||
|
||||
if resp.Data["role_id"] == nil {
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,7 @@ func TestLdapAuthBackend_ConfigUpgrade(t *testing.T) {
|
|||
},
|
||||
}
|
||||
if constants.IsEnterprise {
|
||||
exp.TokenParams.TokenAuthMetadata = make(map[string]string)
|
||||
exp.TokenParams.AliasMetadata = make(map[string]string)
|
||||
}
|
||||
|
||||
configEntry, err := b.Config(ctx, configReq)
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ type TokenParams struct {
|
|||
// The TTL to user for the token
|
||||
TokenTTL time.Duration `json:"token_ttl" mapstructure:"token_ttl"`
|
||||
|
||||
// The metadata to attach to the authentication information.
|
||||
TokenAuthMetadata map[string]string `json:"token_auth_metadata" mapstructure:"token_auth_metadata"`
|
||||
// The metadata to attach to the alias.
|
||||
AliasMetadata map[string]string `json:"alias_metadata" mapstructure:"alias_metadata"`
|
||||
}
|
||||
|
||||
// AddTokenFields adds fields to an existing role. It panics if it would
|
||||
|
|
|
|||
Loading…
Reference in a new issue