From 28c1498151a252c492335501c4c5920cb567d518 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sat, 7 May 2016 18:57:38 -0400 Subject: [PATCH 1/2] Add DisplayName to request audit object in response audit object --- audit/format_json.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audit/format_json.go b/audit/format_json.go index ae181e24af..87d9057571 100644 --- a/audit/format_json.go +++ b/audit/format_json.go @@ -94,8 +94,9 @@ func (f *FormatJSON) FormatResponse( Error: errString, Auth: JSONAuth{ - Policies: auth.Policies, - Metadata: auth.Metadata, + DisplayName: auth.DisplayName, + Policies: auth.Policies, + Metadata: auth.Metadata, }, Request: JSONRequest{ From a2993813e4fd1e739ebed69d42f0e2b5365086c2 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sat, 7 May 2016 19:00:09 -0400 Subject: [PATCH 2/2] changelog++ --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2366eaa91..ed868cfc09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,8 @@ FEATURES: IMPROVEMENTS: + * audit: Add the DisplayName value to the copy of the Request object embedded + in the associated Response, to match the original Request object [GH-1387] * command/auth: Restore the previous authenticated token if the `auth` command fails to authenticate the provided token [GH-1233] * command/write: `-format` and `-field` can now be used with the `write`