Skip to content

Commit

Permalink
add deprecation notice in godocs and OAS schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Oct 23, 2024
1 parent 7572743 commit 044be7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apidef/api_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,9 @@ var Template = template.New("").Funcs(map[string]interface{}{
},
})

// ExternalOAuth support will be deprecated starting from 5.7.0.
// To avoid any disruptions, we recommend that you use JSON Web Token (JWT) instead,
// as explained in https://tyk.io/docs/basic-config-and-security/security/authentication-authorization/ext-oauth-middleware/
type ExternalOAuth struct {
Enabled bool `bson:"enabled" json:"enabled"`
Providers []Provider `bson:"providers" json:"providers"`
Expand Down
1 change: 1 addition & 0 deletions apidef/oas/schema/x-tyk-api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,7 @@
},
"X-Tyk-ExternalOAuth": {
"type": "object",
"description": "Support for external OAuth Middleware will be deprecated starting from 5.7.0. To avoid any disruptions, we recommend that you use JSON Web Token (JWT) instead, as explained in https://tyk.io/docs/basic-config-and-security/security/authentication-authorization/ext-oauth-middleware/",
"properties": {
"enabled": {
"type": "boolean"
Expand Down
3 changes: 3 additions & 0 deletions apidef/oas/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ func (c *IntrospectionCache) ExtractTo(cache *apidef.IntrospectionCache) {
}

// ExternalOAuth holds configuration for an external OAuth provider.
// ExternalOAuth support will be deprecated starting from 5.7.0.
// To avoid any disruptions, we recommend that you use JSON Web Token (JWT) instead,
// as explained in https://tyk.io/docs/basic-config-and-security/security/authentication-authorization/ext-oauth-middleware/
type ExternalOAuth struct {
// Enabled activates external oauth functionality.
Enabled bool `bson:"enabled" json:"enabled"` // required
Expand Down

0 comments on commit 044be7b

Please sign in to comment.