Skip to content

Commit

Permalink
authn: Force auth style in oauth2 client credentials authn (#267)
Browse files Browse the repository at this point in the history
Closes #260
  • Loading branch information
aeneasr authored Sep 26, 2019
1 parent 4e4bd93 commit 97d7890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline/authn/authenticator_oauth2_client_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (

"golang.org/x/oauth2"

"github.com/ory/oathkeeper/driver/configuration"
"github.com/ory/x/httpx"

"github.com/ory/oathkeeper/driver/configuration"

"github.com/ory/oathkeeper/pipeline"

"github.com/pkg/errors"
Expand Down Expand Up @@ -80,6 +81,7 @@ func (a *AuthenticatorOAuth2ClientCredentials) Authenticate(r *http.Request, con
ClientSecret: password,
Scopes: cf.Scopes,
TokenURL: cf.TokenURL,
AuthStyle: oauth2.AuthStyleInHeader,
}

token, err := c.Token(context.WithValue(
Expand Down

0 comments on commit 97d7890

Please sign in to comment.