Improve service auth log
This commit is contained in:
parent
9c072a372c
commit
f939200b34
@ -53,6 +53,7 @@ func (n *noop) Generate(id string, opts ...GenerateOption) (*Account, error) {
|
|||||||
Secret: options.Secret,
|
Secret: options.Secret,
|
||||||
Metadata: options.Metadata,
|
Metadata: options.Metadata,
|
||||||
Scopes: options.Scopes,
|
Scopes: options.Scopes,
|
||||||
|
Issuer: n.Options().Namespace,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ func Generate(id string, name string, a auth.Auth) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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
|
accID = acc.ID
|
||||||
accSecret = acc.Secret
|
accSecret = acc.Secret
|
||||||
|
Loading…
Reference in New Issue
Block a user