11package oidctesting
22
33import (
4+ "context"
45 "fmt"
56 "net/http"
67 "net/http/httptest"
@@ -320,14 +321,14 @@ func runTestErrorHandler(t *testing.T, testName string, tester tester) {
320321 }{
321322 {
322323 testDescription : "no output" ,
323- errorHandler : func (desc options. ErrorDescription , err error ) * options.Response { return nil },
324+ errorHandler : func (ctx context. Context , request * options. OidcError ) * options.Response { return nil },
324325 expectStatusCode : http .StatusBadRequest ,
325326 expectHeaders : map [string ]string {},
326327 expectBodyContains : []byte {},
327328 },
328329 {
329330 testDescription : "basic propagation" ,
330- errorHandler : func (desc options. ErrorDescription , err error ) * options.Response {
331+ errorHandler : func (ctx context. Context , request * options. OidcError ) * options.Response {
331332 return & options.Response {
332333 StatusCode : 418 ,
333334 Headers : map [string ]string {},
@@ -342,7 +343,7 @@ func runTestErrorHandler(t *testing.T, testName string, tester tester) {
342343 },
343344 {
344345 testDescription : "additional header" ,
345- errorHandler : func (desc options. ErrorDescription , err error ) * options.Response {
346+ errorHandler : func (ctx context. Context , request * options. OidcError ) * options.Response {
346347 return & options.Response {
347348 StatusCode : 418 ,
348349 Headers : map [string ]string {"some" : "header" },
@@ -358,7 +359,7 @@ func runTestErrorHandler(t *testing.T, testName string, tester tester) {
358359 },
359360 {
360361 testDescription : "content type" ,
361- errorHandler : func (desc options. ErrorDescription , err error ) * options.Response {
362+ errorHandler : func (ctx context. Context , request * options. OidcError ) * options.Response {
362363 return & options.Response {
363364 StatusCode : 418 ,
364365 Headers : map [string ]string {"content-type" : "application/json" },
0 commit comments