Skip to content

Commit

Permalink
gofmted
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkab committed Aug 8, 2019
1 parent bb05eca commit a624aa0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pipeline/authn/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions pipeline/authn/authenticator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package authn_test

import (
"fmt"
"testing"

"github.com/ory/oathkeeper/pipeline/authn"
"github.com/stretchr/testify/assert"
"testing"
)

const (
Expand All @@ -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
}{
Expand Down
3 changes: 2 additions & 1 deletion pipeline/mutate/mutator_noop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions proxy/request_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,3 @@ func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (http.Hea

return session.Header, nil
}


0 comments on commit a624aa0

Please sign in to comment.