Add approle role name to metadata (#2985)

This commit is contained in:
Jeff Mitchell 2017-07-13 19:07:15 -04:00 committed by GitHub
parent cdd68aff95
commit c24f56d91c

View File

@ -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,