ory-am/hydra

View on GitHub
oauth2/trust/validator.go

Summary

Maintainability
A
40 mins
Test Coverage

Method GrantValidator.Validate has 6 return statements (exceeds 4 allowed).
Open

func (v *GrantValidator) Validate(request createGrantRequest) error {
    if request.Issuer == "" {
        return errorsx.WithStack(ErrMissingRequiredParameter.WithHint("Field 'issuer' is required."))
    }

Severity: Major
Found in oauth2/trust/validator.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status