@@ -758,7 +758,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
758758
759759 s := strings.SplitN(req.Form.Get("state"), ":", 2)
760760 if len(s) != 2 {
761− logger.Printf("Error while parsing OAuth2 state; invalid length")
761+ logger.Printf("Error while parsing OAuth2 state: invalid length")
762762 p.ErrorPage(rw, 500, "Internal Error", "Invalid State")
763763 return
764764 }
@@ -766,13 +766,13 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
766766 redirect := s[1]
767767 c, err := req.Cookie(p.CSRFCookieName)
768768 if err != nil {
769− logger.PrintAuthf(session.Email, req, logger.AuthFailure, "Invalid authentication via OAuth2; unable too obtain CSRF cookie")
769+ logger.PrintAuthf(session.Email, req, logger.AuthFailure, "Invalid authentication via OAuth2: unable too obtain CSRF cookie")
770770 p.ErrorPage(rw, 403, "Permission Denied", err.Error())
771771 return
772772 }
773773 p.ClearCSRFCookie(rw, req)
774774 if c.Value != nonce {
775− logger.PrintAuthf(session.Email, req, logger.AuthFailure, "Invalid authentication via OAuth2; csrf token mismatch, potential attack")
775+ logger.PrintAuthf(session.Email, req, logger.AuthFailure, "Invalid authentication via OAuth2: csrf token mismatch, potential attack")
776776 p.ErrorPage(rw, 403, "Permission Denied", "csrf failed")
777777 return
778778 }
@@ -783,7 +783,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
783783
784784 // set cookie, or deny
785785 if p.Validator(session.Email) && p.provider.ValidateGroup(session.Email) {
786− logger.PrintAuthf(session.Email, req, logger.AuthSuccess, "Authenticated via OAuth2; %s", session)
786+ logger.PrintAuthf(session.Email, req, logger.AuthSuccess, "Authenticated via OAuth2: %s", session)
787787 err := p.SaveSession(rw, req, session)
788788 if err != nil {
789789 logger.Printf("%s %s", remoteAddr, err)
@@ -792,7 +792,7 @@ func (p *OAuthProxy) OAuthCallback(rw http.ResponseWriter, req *http.Request) {
792792 }
793793 http.Redirect(rw, req, redirect, 302)
794794 } else {
795− logger.PrintAuthf(session.Email, req, logger.AuthSuccess, "Invalid authentication via OAuth2; unauthorized")
795+ logger.PrintAuthf(session.Email, req, logger.AuthSuccess, "Invalid authentication via OAuth2: unauthorized")
796796 p.ErrorPage(rw, 403, "Permission Denied", "Invalid Account")
797797 }
798798}
@@ -852,7 +852,7 @@ func (p *OAuthProxy) Authenticate(rw http.ResponseWriter, req *http.Request) int
852852 }
853853
854854 if session != nil && session.IsExpired() {
855− logger.Printf("Removing session; token expired %s", session)
855+ logger.Printf("Removing session: token expired %s", session)
856856 session = nil
857857 saveSession = false
858858 clearSession = true
@@ -860,7 +860,7 @@ func (p *OAuthProxy) Authenticate(rw http.ResponseWriter, req *http.Request) int
860860
861861 if saveSession && !revalidated && session != nil && session.AccessToken != "" {
862862 if !p.provider.ValidateSessionState(session) {
863− logger.Printf("Removing session; error validating %s", session)
863+ logger.Printf("Removing session: error validating %s", session)
864864 saveSession = false
865865 session = nil
866866 clearSession = true
@@ -868,7 +868,7 @@ func (p *OAuthProxy) Authenticate(rw http.ResponseWriter, req *http.Request) int
868868 }
869869
870870 if session != nil && session.Email != "" && !p.Validator(session.Email) {
871− logger.Printf(session.Email, req, logger.AuthFailure, "Invalid authentication via session; removing session %s", session)
871+ logger.Printf(session.Email, req, logger.AuthFailure, "Invalid authentication via session: removing session %s", session)
872872 session = nil
873873 saveSession = false
874874 clearSession = true
@@ -968,7 +968,7 @@ func (p *OAuthProxy) CheckBasicAuth(req *http.Request) (*providers.SessionState,
968968 logger.PrintAuthf(pair[0], req, logger.AuthSuccess, "Authenticated via basic auth and HTpasswd File")
969969 return &providers.SessionState{User: pair[0]}, nil
970970 }
971− logger.PrintAuthf(pair[0], req, logger.AuthFailure, "Invalid authentication via basic auth; not in Htpasswd File")
971+ logger.PrintAuthf(pair[0], req, logger.AuthFailure, "Invalid authentication via basic auth: not in Htpasswd File")
972972 return nil, nil
973973}
974974