Skip to content

Commit

Permalink
client: Rename grant type authorize_code to authorization_code (#1191)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kaliski <[email protected]>
  • Loading branch information
sjkaliski authored and aeneasr committed Nov 29, 2018
1 parent 563276b commit 4b97a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Client struct {

// GrantTypes is an array of grant types the client is allowed to use.
//
// Pattern: client_credentials|authorize_code|implicit|refresh_token
// Pattern: client_credentials|authorization_code|implicit|refresh_token
GrantTypes []string `json:"grant_types"`

// ResponseTypes is an array of the OAuth 2.0 response type strings that the client can
Expand Down
4 changes: 2 additions & 2 deletions oauth2/oauth2_auth_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/oauth2"
"golang.org/x/oauth2/clientcredentials"
"gopkg.in/square/go-jose.v2"
jose "gopkg.in/square/go-jose.v2"

"github.com/ory/fosite"
"github.com/ory/fosite/compose"
Expand Down Expand Up @@ -1017,7 +1017,7 @@ func TestAuthCodeWithDefaultStrategy(t *testing.T) {
}
}

// TestAuthCodeWithMockStrategy runs the authorize_code flow against various ConsentStrategy scenarios.
// TestAuthCodeWithMockStrategy runs the authorization_code flow against various ConsentStrategy scenarios.
// For that purpose, the consent strategy is mocked so all scenarios can be applied properly. This test suite checks:
//
// - [x] should pass request if strategy passes
Expand Down

0 comments on commit 4b97a0f

Please sign in to comment.