mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +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
|
// Generate the response
|
||||||
resp := &logical.Response{
|
resp := &logical.Response{
|
||||||
Auth: &logical.Auth{
|
Auth: &logical.Auth{
|
||||||
|
DisplayName: te.DisplayName,
|
||||||
|
Policies: te.Policies,
|
||||||
|
Metadata: te.Meta,
|
||||||
LeaseOptions: logical.LeaseOptions{
|
LeaseOptions: logical.LeaseOptions{
|
||||||
Lease: leaseDuration,
|
Lease: leaseDuration,
|
||||||
LeaseGracePeriod: leaseDuration / 10,
|
LeaseGracePeriod: leaseDuration / 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user