mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:51:14 +08:00
Fixed all broken specs
Moved middleware config into authenticators
This commit is contained in:
@ -35,6 +35,16 @@ module Discourse
|
||||
@plugins
|
||||
end
|
||||
|
||||
def self.authenticators
|
||||
# TODO: perhaps we don't need auth providers and authenticators maybe one object is enough
|
||||
|
||||
# NOTE: this bypasses the site settings and gives a list of everything, we need to register every middleware
|
||||
# for the cases of multisite
|
||||
# In future we may change it so we don't include them all for cases where we are not a multisite, but we would
|
||||
# require a restart after site settings change
|
||||
Users::OmniauthCallbacksController::BUILTIN_AUTH + auth_providers.map(&:authenticator)
|
||||
end
|
||||
|
||||
def self.auth_providers
|
||||
providers = []
|
||||
if plugins
|
||||
|
Reference in New Issue
Block a user