Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Apr 6, 2019
1 parent 548ad67 commit 4fa849b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proxy/credentials_issuer_noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ func (a *CredentialsIssuerNoOp) GetID() string {
return "noop"
}

func (a *CredentialsIssuerNoOp) Issue(r *http.Request, session *AuthenticationSession, config json.RawMessage, rl *rule.Rule) (http.Header, error) {
func (a *CredentialsIssuerNoOp) Issue(r *http.Request, session *AuthenticationSession, config json.RawMessage, rl *rule.Rule) (http.Header, error) {
return r.Header, nil
}
4 changes: 2 additions & 2 deletions proxy/credentials_issuer_noop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ func TestCredentialsIssuerNoOp(t *testing.T) {
assert.NotNil(t, NewCredentialsIssuerNoOp())
assert.NotEmpty(t, NewCredentialsIssuerNoOp().GetID())

_, err := NewCredentialsIssuerNoOp().Issue(&http.Request{Header: map[string][]string{}}, nil, nil, nil)
require.NoError(t,err)
_, err := NewCredentialsIssuerNoOp().Issue(&http.Request{Header: map[string][]string{}}, nil, nil, nil)
require.NoError(t, err)
}

0 comments on commit 4fa849b

Please sign in to comment.