Improve service auth log

This commit is contained in:
Ben Toogood 2020-05-22 12:24:37 +01:00
parent 9c072a372c
commit f939200b34
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

@ -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