Merge pull request #1403 from dmcgowan/auth-const-keys
Update auth context keys to use constant
This commit is contained in:
commit
9b395d0789
6 changed files with 18 additions and 7 deletions
|
@ -597,7 +597,7 @@ func (app *App) dispatcher(dispatch dispatchFunc) http.Handler {
|
|||
}
|
||||
|
||||
// Add username to request logging
|
||||
context.Context = ctxu.WithLogger(context.Context, ctxu.GetLogger(context.Context, "auth.user.name"))
|
||||
context.Context = ctxu.WithLogger(context.Context, ctxu.GetLogger(context.Context, auth.UserNameKey))
|
||||
|
||||
if app.nameRequired(r) {
|
||||
nameRef, err := reference.ParseNamed(getName(context))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue