Skip to content

Commit

Permalink
add deprecation notice for external oauth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Oct 23, 2024
1 parent 1fcb4fd commit 7572743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gateway/mw_external_oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (k *ExternalOAuthMiddleware) Name() string {
}

func (k *ExternalOAuthMiddleware) EnabledForSpec() bool {
if k.Spec.ExternalOAuth.Enabled {
log.Warn("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/")
}

return k.Spec.ExternalOAuth.Enabled
}

Expand Down

0 comments on commit 7572743

Please sign in to comment.