mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-21 14:41:09 +02:00
Add approle role name to metadata (#2985)
This commit is contained in:
parent
cdd68aff95
commit
c24f56d91c
@ -38,6 +38,9 @@ func (b *backend) pathLoginUpdate(req *logical.Request, data *framework.FieldDat
|
||||
return logical.ErrorResponse(fmt.Sprintf("failed to validate SecretID: %s", err)), nil
|
||||
}
|
||||
|
||||
// Always include the role name, for later filtering
|
||||
metadata["role_name"] = roleName
|
||||
|
||||
auth := &logical.Auth{
|
||||
NumUses: role.TokenNumUses,
|
||||
Period: role.Period,
|
||||
|
Loading…
x
Reference in New Issue
Block a user