ory-am/hydra

View on GitHub
consent/csrf.go

Summary

Maintainability
A
1 hr
Test Coverage

Function createCsrfSession has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

func createCsrfSession(w http.ResponseWriter, r *http.Request, conf x.CookieConfigProvider, store sessions.Store, name string, csrfValue string, maxAge time.Duration) error {
Severity: Major
Found in consent/csrf.go - About 50 mins to fix

    Function ValidateCsrfSession has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func ValidateCsrfSession(r *http.Request, conf x.CookieConfigProvider, store sessions.Store, name, expectedCSRF string, f *flow.Flow) error {
    Severity: Minor
    Found in consent/csrf.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status