Skip to content

Commit

Permalink
TT-13185, fixed issue with password vs passwordAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-tyk committed Oct 30, 2024
1 parent 7b0c8d5 commit 84b1255
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apidef/api_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ type UpstreamOAuth struct {
// ClientCredentials holds the client credentials for upstream OAuth2 authentication.
ClientCredentials ClientCredentials `bson:"client_credentials" json:"client_credentials"`
// PasswordAuthentication holds the configuration for upstream OAauth password authentication flow.
PasswordAuthentication PasswordAuthentication `bson:"password_authentication,omitempty" json:"passwordAuthentication,omitempty"`
PasswordAuthentication PasswordAuthentication `bson:"password,omitempty" json:"password,omitempty"`
}

// PasswordAuthentication holds the configuration for upstream OAuth2 password authentication flow.
Expand Down
2 changes: 1 addition & 1 deletion apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@
"tokenUrl"
]
},
"passwordAuthentication": {
"password": {
"type": "object",
"properties": {
"clientId": {
Expand Down
2 changes: 1 addition & 1 deletion apidef/oas/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ type UpstreamOAuth struct {
// ClientCredentials holds the configuration for OAuth2 Client Credentials flow.
ClientCredentials *ClientCredentials `bson:"clientCredentials,omitempty" json:"clientCredentials,omitempty"`
// PasswordAuthentication holds the configuration for upstream OAauth password authentication flow.
PasswordAuthentication *PasswordAuthentication `bson:"passwordAuthentication,omitempty" json:"passwordAuthentication,omitempty"`
PasswordAuthentication *PasswordAuthentication `bson:"password,omitempty" json:"password,omitempty"`
}

// PasswordAuthentication holds the configuration for upstream OAuth2 password authentication flow.
Expand Down
2 changes: 1 addition & 1 deletion apidef/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ const Schema = `{
"token_url"
]
},
"password_authentication": {
"password": {
"type": "object",
"properties": {
"client_id": {
Expand Down

0 comments on commit 84b1255

Please sign in to comment.