oauth2-proxy/oauth2-proxy

View on GitHub
pkg/middleware/stored_session.go

Summary

Maintainability
A
50 mins
Test Coverage
A
90%

Method storedSessionLoader.refreshSessionIfNeeded has 8 return statements (exceeds 4 allowed).
Open

func (s *storedSessionLoader) refreshSessionIfNeeded(rw http.ResponseWriter, req *http.Request, session *sessionsapi.SessionState) error {
    if !needsRefresh(s.refreshPeriod, session) {
        // Refresh is disabled or the session is not old enough, do nothing
        return nil
    }
Severity: Major
Found in pkg/middleware/stored_session.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status