diff --git a/apidef/api_definitions.go b/apidef/api_definitions.go index a8910814bda..05933c6a162 100644 --- a/apidef/api_definitions.go +++ b/apidef/api_definitions.go @@ -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"` diff --git a/apidef/oas/schema/x-tyk-api-gateway.json b/apidef/oas/schema/x-tyk-api-gateway.json index 176cfe8fff1..100c0e1858b 100644 --- a/apidef/oas/schema/x-tyk-api-gateway.json +++ b/apidef/oas/schema/x-tyk-api-gateway.json @@ -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" diff --git a/apidef/oas/security.go b/apidef/oas/security.go index acdc4480373..da44119b2c7 100644 --- a/apidef/oas/security.go +++ b/apidef/oas/security.go @@ -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