ory-am/hydra

View on GitHub
flow/flow.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Flow.HandleLoginRequest has 6 return statements (exceeds 4 allowed).
Open

func (f *Flow) HandleLoginRequest(h *HandledLoginRequest) error {
    if f.LoginWasUsed {
        return errors.WithStack(x.ErrConflict.WithHint("The login request was already used and can no longer be changed."))
    }

Severity: Major
Found in flow/flow.go - About 40 mins to fix

    Method Flow.HandleConsentRequest has 5 return statements (exceeds 4 allowed).
    Open

    func (f *Flow) HandleConsentRequest(r *AcceptOAuth2ConsentRequest) error {
        if time.Time(r.HandledAt).IsZero() {
            return errors.New("refusing to handle a consent request with null HandledAt")
        }
    
    
    Severity: Major
    Found in flow/flow.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status