mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 20:23:44 +08:00
df3886d6e5
This commit introduces a new site setting "google_oauth2_hd_groups". If enabled, group information will be fetched from Google during authentication, and stored in the Discourse database. These 'associated groups' can be connected to a Discourse group via the "Membership" tab of the group preferences UI. The majority of the implementation is generic, so we will be able to add support to more authentication methods in the near future. https://meta.discourse.org/t/managing-group-membership-via-authentication/175950
15 lines
416 B
Ruby
15 lines
416 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Auth; end
|
|
|
|
require 'auth/auth_provider'
|
|
require 'auth/result'
|
|
require 'auth/authenticator'
|
|
require 'auth/managed_authenticator'
|
|
require 'auth/omniauth_strategies/discourse_google_oauth2'
|
|
require 'auth/facebook_authenticator'
|
|
require 'auth/github_authenticator'
|
|
require 'auth/twitter_authenticator'
|
|
require 'auth/google_oauth2_authenticator'
|
|
require 'auth/discord_authenticator'
|