From f939200b3449e7b577829e3e31d00c55b737d551 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Fri, 22 May 2020 12:24:37 +0100 Subject: [PATCH] Improve service auth log --- auth/default.go | 1 + util/auth/auth.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/default.go b/auth/default.go index 668edbd3..bc861d1f 100644 --- a/auth/default.go +++ b/auth/default.go @@ -53,6 +53,7 @@ func (n *noop) Generate(id string, opts ...GenerateOption) (*Account, error) { Secret: options.Secret, Metadata: options.Metadata, Scopes: options.Scopes, + Issuer: n.Options().Namespace, }, nil } diff --git a/util/auth/auth.go b/util/auth/auth.go index e26a6f1f..c41c6a0e 100644 --- a/util/auth/auth.go +++ b/util/auth/auth.go @@ -28,7 +28,7 @@ func Generate(id string, name string, a auth.Auth) error { if err != nil { return err } - logger.Infof("Auth [%v] Authenticated as %v in the %v namespace", a, name, a.Options().Namespace) + logger.Infof("Auth [%v] Authenticated as %v issued by %v", a, name, acc.Issuer) accID = acc.ID accSecret = acc.Secret