@@ -219,7 +219,7 @@ func (as *AuthServer) Authenticate(ar *authRequest) (bool, authn.Labels, error)
219219 if err == authn .NoMatch {
220220 continue
221221 } else if err == authn .WrongPass {
222- glog .Warningf ("Failed authentication with %s: %s" , err )
222+ glog .Warningf ("Failed authentication with %s: %s" , err , ar . Account )
223223 return false , nil , nil
224224 }
225225 err = fmt .Errorf ("authn #%d returned error: %s" , i + 1 , err )
@@ -334,13 +334,13 @@ func (as *AuthServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
334334 glog .V (3 ).Infof ("Request: %+v" , req )
335335 path_prefix := as .config .Server .PathPrefix
336336 switch {
337- case req .URL .Path == path_prefix + "/" :
337+ case req .URL .Path == path_prefix + "/" :
338338 as .doIndex (rw , req )
339- case req .URL .Path == path_prefix + "/auth" :
339+ case req .URL .Path == path_prefix + "/auth" :
340340 as .doAuth (rw , req )
341- case req .URL .Path == path_prefix + "/google_auth" && as .ga != nil :
341+ case req .URL .Path == path_prefix + "/google_auth" && as .ga != nil :
342342 as .ga .DoGoogleAuth (rw , req )
343- case req .URL .Path == path_prefix + "/github_auth" && as .gha != nil :
343+ case req .URL .Path == path_prefix + "/github_auth" && as .gha != nil :
344344 as .gha .DoGitHubAuth (rw , req )
345345 default :
346346 http .Error (rw , "Not found" , http .StatusNotFound )
0 commit comments