2014-07-20 15:01:34 -04:00
|
|
|
# name: Steam authentication with Discourse
|
|
|
|
# about: Authenticate with Discourse with Steam
|
2019-05-10 03:48:41 -04:00
|
|
|
# version: 2.0.0
|
|
|
|
# author: J. de Faye, tgxworld
|
2015-06-13 16:36:04 -04:00
|
|
|
# template author: S. Saffron
|
2014-07-20 15:01:34 -04:00
|
|
|
|
2019-05-10 03:48:41 -04:00
|
|
|
gem 'omniauth-steam', '1.0.6'
|
|
|
|
|
2018-11-30 09:15:57 -05:00
|
|
|
if respond_to?(:register_svg_icon)
|
|
|
|
register_svg_icon "fab fa-steam"
|
|
|
|
end
|
|
|
|
|
2019-05-10 03:48:41 -04:00
|
|
|
register_asset 'stylesheets/steam-login.scss'
|
2016-11-19 10:28:47 -05:00
|
|
|
|
2019-05-10 03:48:41 -04:00
|
|
|
load File.expand_path("../lib/auth/steam_authenticator.rb", __FILE__)
|
2014-07-20 15:01:34 -04:00
|
|
|
|
2019-05-10 03:48:41 -04:00
|
|
|
auth_provider authenticator: Auth::SteamAuthenticator.new, icon: 'steam'
|
2014-07-20 15:01:34 -04:00
|
|
|
|
2019-05-10 03:48:41 -04:00
|
|
|
after_initialize do
|
|
|
|
[
|
|
|
|
"../lib/validators/enable_steam_logins_validator.rb"
|
|
|
|
].each { |path| load File.expand_path(path, __FILE__) }
|
2014-07-20 15:01:34 -04:00
|
|
|
end
|