DEV: Deprecate OAuth2Authenticator and OAuth2UserInfo (#15427)

These have been superseded by ManagedAuthenticator and UserAssociatedAccount. For more information, see https://meta.discourse.org/t/106695
This commit is contained in:
David Taylor
2022-01-06 16:50:18 +00:00
committed by GitHub
parent c0bb775f3f
commit 78d0ec35a5
5 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,7 @@ class Auth::OAuth2Authenticator < Auth::Authenticator
# only option at the moment is :trusted
def initialize(name, opts = {})
Discourse.deprecate("OAuth2Authenticator is deprecated. Use `ManagedAuthenticator` and `UserAssociatedAccount` instead. For more information, see https://meta.discourse.org/t/106695", drop_from: '2.9.0', output_in_test: true)
@name = name
@opts = opts
end