Skip to content

Commit

Permalink
Add approle role name to metadata (#2985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai authored Jul 13, 2017
1 parent cdd68af commit c24f56d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/credential/approle/path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c24f56d

Please sign in to comment.