Skip to content

Commit

Permalink
fixup! Add missing function in cs.Configuration (viper wrapper)
Browse files Browse the repository at this point in the history
  • Loading branch information
fperot74 committed May 15, 2019
1 parent 8fec167 commit b3b8684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func MakeHTTPBasicAuthenticationMW(passwordToMatch string, logger cs.Logger) fun
return
}

var ctx = context.WithValue(req.Context(), "username", username)
var ctx = context.WithValue(req.Context(), cs.CtContextUsername, username)

next.ServeHTTP(w, req.WithContext(ctx))
})
Expand Down

0 comments on commit b3b8684

Please sign in to comment.