Skip to content

Commit

Permalink
remove test ref from production code
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Dec 8, 2023
1 parent 6519fdf commit f8f76b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auth/api/iam/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit f8f76b4

Please sign in to comment.