From 9de94bc7a4b022213769958258249c4d4fbf8c0d Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Fri, 8 Dec 2023 11:53:56 +0100 Subject: [PATCH] final cleanup --- auth/services/oauth/interface.go | 1 + auth/services/oauth/relying_party.go | 1 + auth/services/oauth/relying_party_test.go | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/auth/services/oauth/interface.go b/auth/services/oauth/interface.go index 9851144b29..48da6671a3 100644 --- a/auth/services/oauth/interface.go +++ b/auth/services/oauth/interface.go @@ -48,6 +48,7 @@ type AuthorizationServer interface { IntrospectAccessToken(ctx context.Context, token string) (*services.NutsAccessToken, error) } +// Verifier implements the OpenID4VP Verifier role. type Verifier interface { // AuthorizationServerMetadata returns the metadata of the remote wallet. AuthorizationServerMetadata(ctx context.Context, webdid did.DID) (*oauth.AuthorizationServerMetadata, error) diff --git a/auth/services/oauth/relying_party.go b/auth/services/oauth/relying_party.go index 7cfc0e9f1f..59f2fdb0d0 100644 --- a/auth/services/oauth/relying_party.go +++ b/auth/services/oauth/relying_party.go @@ -38,6 +38,7 @@ import ( "github.com/nuts-foundation/nuts-node/core" nutsCrypto "github.com/nuts-foundation/nuts-node/crypto" "github.com/nuts-foundation/nuts-node/didman" + "github.com/nuts-foundation/nuts-node/openid4vc" "github.com/nuts-foundation/nuts-node/vcr/credential" "github.com/nuts-foundation/nuts-node/vcr/holder" "github.com/nuts-foundation/nuts-node/vcr/signature/proof" diff --git a/auth/services/oauth/relying_party_test.go b/auth/services/oauth/relying_party_test.go index 1bf88e37f6..7a8195fa75 100644 --- a/auth/services/oauth/relying_party_test.go +++ b/auth/services/oauth/relying_party_test.go @@ -24,10 +24,6 @@ import ( "encoding/json" "errors" "fmt" - "github.com/nuts-foundation/nuts-node/audit" - "github.com/nuts-foundation/nuts-node/auth/oauth" - "github.com/nuts-foundation/nuts-node/test" - http2 "github.com/nuts-foundation/nuts-node/test/http" "net/http" "net/http/httptest" "testing" @@ -36,9 +32,13 @@ import ( ssi "github.com/nuts-foundation/go-did" "github.com/nuts-foundation/go-did/did" "github.com/nuts-foundation/go-did/vc" + "github.com/nuts-foundation/nuts-node/audit" + "github.com/nuts-foundation/nuts-node/auth/oauth" "github.com/nuts-foundation/nuts-node/auth/services" "github.com/nuts-foundation/nuts-node/crypto" "github.com/nuts-foundation/nuts-node/didman" + "github.com/nuts-foundation/nuts-node/test" + http2 "github.com/nuts-foundation/nuts-node/test/http" vcr "github.com/nuts-foundation/nuts-node/vcr/api/vcr/v2" "github.com/nuts-foundation/nuts-node/vcr/credential" "github.com/nuts-foundation/nuts-node/vcr/holder"