mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-27 15:23:52 +00:00
Add approle role name to metadata (#2985)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user