discourse-steam-login/plugin.rb

27 lines
766 B
Ruby
Raw Normal View History

2019-07-29 21:31:07 -04:00
# frozen_string_literal: true
# name: discourse-steam-login
2014-07-20 15:01:34 -04:00
# about: Authenticate with Discourse with Steam
2019-05-13 03:09:21 -04:00
# version: 2.0.1
2019-05-10 03:48:41 -04:00
# author: J. de Faye, tgxworld
2014-07-20 15:01:34 -04:00
# omniauth-openid is not included in core since v2.4.0.beta10
unless defined?(OmniAuth::Strategies::OpenID)
gem "ruby-openid", "2.9.2", require: false
gem "rack-openid", "1.3.1", require: false
gem "omniauth-openid", "1.0.1"
end
gem "omniauth-steam", "1.0.6"
2019-05-10 03:48:41 -04:00
2020-02-03 10:04:10 -05:00
register_svg_icon "fab-steam" if respond_to?(:register_svg_icon)
2018-11-30 09:15:57 -05:00
register_asset "stylesheets/steam-login.scss"
2016-11-19 10:28:47 -05:00
%w[
../lib/auth/steam_authenticator.rb
../lib/validators/enable_steam_logins_validator.rb
2019-05-13 03:11:20 -04:00
].each { |path| load File.expand_path(path, __FILE__) }
2014-07-20 15:01:34 -04:00
auth_provider authenticator: Auth::SteamAuthenticator.new, icon: "fab-steam"