nuts-foundation/nuts-node

View on GitHub
auth/services/oauth/authz_server.go

Summary

Maintainability
A
1 hr
Test Coverage
B
87%

Function NewAuthorizationServer has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    didResolver resolver.DIDResolver, vcFinder vcr.Finder, vcVerifier verifier.Verifier,
    serviceResolver didman.CompoundServiceResolver, privateKeyStore nutsCrypto.KeyStore,
    contractNotary services.ContractNotary, jsonldManager jsonld.JSONLD, accessTokenLifeSpan time.Duration) AuthorizationServer {
Severity: Major
Found in auth/services/oauth/authz_server.go - About 1 hr to fix

    Method authzServer.buildAccessToken has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (s *authzServer) buildAccessToken(ctx context.Context, requester did.DID, authorizer did.DID, purposeOfUse string, userIdentity contract.VPVerificationResult, credentialIDs []string) (string, services.NutsAccessToken, error) {
    Severity: Minor
    Found in auth/services/oauth/authz_server.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status