horizoncd/horizon

View on GitHub
pkg/idp/utils/utils.go

Summary

Maintainability
A
40 mins
Test Coverage

Function HandleOIDC has 6 return statements (exceeds 4 allowed).
Open

func HandleOIDC(ctx context.Context, idp *models.IdentityProvider,
    code string, redirect ...string) (*Claims, error) {
    conf, err := MakeOuath2Config(ctx, idp)
    if err != nil {
        return nil, err
Severity: Major
Found in pkg/idp/utils/utils.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status