From f8f76b47c7d86e80292e1bbbb3274e5c93d1b7f2 Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Fri, 8 Dec 2023 11:45:49 +0100 Subject: [PATCH] remove test ref from production code --- auth/api/iam/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/api/iam/api.go b/auth/api/iam/api.go index 7d5b165efa..41885c00f6 100644 --- a/auth/api/iam/api.go +++ b/auth/api/iam/api.go @@ -32,13 +32,13 @@ import ( "github.com/nuts-foundation/nuts-node/auth/oauth" "github.com/nuts-foundation/nuts-node/core" "github.com/nuts-foundation/nuts-node/storage" - "github.com/nuts-foundation/nuts-node/test" "github.com/nuts-foundation/nuts-node/vcr" "github.com/nuts-foundation/nuts-node/vdr" "github.com/nuts-foundation/nuts-node/vdr/didweb" "github.com/nuts-foundation/nuts-node/vdr/resolver" "html/template" "net/http" + "net/url" "strings" "time" ) @@ -292,9 +292,10 @@ func (r Wrapper) HandleAuthorizeRequest(ctx context.Context, request HandleAutho return r.handlePresentationRequest(params, session) default: // TODO: This should be a redirect? + redirectURI, _ := url.Parse(session.RedirectURI) return nil, oauth.OAuth2Error{ Code: oauth.UnsupportedResponseType, - RedirectURI: test.MustParseURL(session.RedirectURI), + RedirectURI: redirectURI, } } }