diff --git a/pipeline/authn/authenticator.go b/pipeline/authn/authenticator.go index 4e0dc322f1..cb393fd3ae 100644 --- a/pipeline/authn/authenticator.go +++ b/pipeline/authn/authenticator.go @@ -26,7 +26,7 @@ type Authenticator interface { type AuthenticationSession struct { Subject string Extra map[string]interface{} - Header http.Header + Header http.Header } func (a *AuthenticationSession) SetHeader(key, val string) { diff --git a/pipeline/authn/authenticator_test.go b/pipeline/authn/authenticator_test.go index 1a5d6029c6..31bf0c519a 100644 --- a/pipeline/authn/authenticator_test.go +++ b/pipeline/authn/authenticator_test.go @@ -2,9 +2,10 @@ package authn_test import ( "fmt" + "testing" + "github.com/ory/oathkeeper/pipeline/authn" "github.com/stretchr/testify/assert" - "testing" ) const ( @@ -15,7 +16,7 @@ const ( func TestSetHeader(t *testing.T) { assert := assert.New(t) - for k, tc := range [] struct { + for k, tc := range []struct { a *authn.AuthenticationSession desc string }{ diff --git a/pipeline/mutate/mutator_noop_test.go b/pipeline/mutate/mutator_noop_test.go index c407a8234e..7e15d55535 100644 --- a/pipeline/mutate/mutator_noop_test.go +++ b/pipeline/mutate/mutator_noop_test.go @@ -21,10 +21,11 @@ package mutate_test import ( - "github.com/ory/oathkeeper/pipeline/authn" "net/http" "testing" + "github.com/ory/oathkeeper/pipeline/authn" + "github.com/ory/viper" "github.com/ory/oathkeeper/driver/configuration" diff --git a/proxy/request_handler.go b/proxy/request_handler.go index 2588dc79fb..785cbf55db 100644 --- a/proxy/request_handler.go +++ b/proxy/request_handler.go @@ -202,5 +202,3 @@ func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (http.Hea return session.Header, nil } - -