mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 09:51:16 -04:00
Enable printing of accessor in audit logs
This commit is contained in:
parent
bb5ce47325
commit
c75cb1678d
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ func (f *FormatJSON) FormatResponse(
|
|||
if resp.Auth != nil {
|
||||
respAuth = &JSONAuth{
|
||||
ClientToken: resp.Auth.ClientToken,
|
||||
Accessor: resp.Auth.Accessor,
|
||||
DisplayName: resp.Auth.DisplayName,
|
||||
Policies: resp.Auth.Policies,
|
||||
Metadata: resp.Auth.Metadata,
|
||||
|
|
@ -149,6 +150,7 @@ type JSONResponse struct {
|
|||
|
||||
type JSONAuth struct {
|
||||
ClientToken string `json:"client_token,omitempty"`
|
||||
Accessor string `json:"accessor,omitempty"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Policies []string `json:"policies"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue