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, } } }