vault: token create should return various metadata for logging

This commit is contained in:
Armon Dadgar
2015-04-25 20:21:35 -07:00
parent 3167d64aa0
commit b74211aba8

View File

@@ -572,6 +572,9 @@ func (ts *TokenStore) handleCreate(
// Generate the response
resp := &logical.Response{
Auth: &logical.Auth{
DisplayName: te.DisplayName,
Policies: te.Policies,
Metadata: te.Meta,
LeaseOptions: logical.LeaseOptions{
Lease: leaseDuration,
LeaseGracePeriod: leaseDuration / 10,