nuts-foundation/nuts-node

View on GitHub
vcr/holder/openid.go

Summary

Maintainability
A
3 hrs
Test Coverage
A
91%

Method openidHandler.HandleCredentialOffer has 86 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (h *openidHandler) HandleCredentialOffer(ctx context.Context, offer openid4vci.CredentialOffer) error {
    // TODO: This check is too simplistic, there can be multiple credential offers,
    //       but the issuer should only request the one it's interested in.
    //       See https://github.com/nuts-foundation/nuts-node/issues/2049
    if len(offer.Credentials) != 1 {
Severity: Major
Found in vcr/holder/openid.go - About 2 hrs to fix

    Function NewOpenIDHandler has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func NewOpenIDHandler(did did.DID, identifier string, httpClient core.HTTPRequestDoer, credentialStore vcrTypes.Writer, signer crypto.JWTSigner, resolver resolver.KeyResolver) OpenIDHandler {
    Severity: Minor
    Found in vcr/holder/openid.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status