mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
vault: token create should return various metadata for logging
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user