mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-21 22:51: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
|
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{
|
auth := &logical.Auth{
|
||||||
NumUses: role.TokenNumUses,
|
NumUses: role.TokenNumUses,
|
||||||
Period: role.Period,
|
Period: role.Period,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user