forked from External/greenlight
25 lines
696 B
Ruby
25 lines
696 B
Ruby
module ApplicationHelper
|
|
include MeetingsHelper
|
|
|
|
# Gets all configured omniauth providers.
|
|
def configured_providers
|
|
Rails.configuration.providers.select do |provider|
|
|
Rails.configuration.send("omniauth_#{provider}")
|
|
end
|
|
end
|
|
|
|
# Generates the login URL for a specific provider.
|
|
def omniauth_login_url(provider)
|
|
"#{Rails.configuration.relative_url_root}/auth/#{provider}"
|
|
end
|
|
|
|
# Determine if Greenlight is configured to allow user signups.
|
|
def allow_user_signup?
|
|
Rails.configuration.allow_user_signup
|
|
end
|
|
|
|
def bigbluebutton_endpoint_default?
|
|
Rails.configuration.bigbluebutton_endpoint_default == Rails.configuration.bigbluebutton_endpoint
|
|
end
|
|
end
|