2019-07-29 21:31:07 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-02-21 21:53:16 +02:00
|
|
|
# name: discourse-steam-login
|
2023-11-04 07:53:52 +10:00
|
|
|
# about: Allows users to login to your forum using Steam Authentication.
|
|
|
|
# meta_topic_id: 18153
|
2019-05-13 15:09:21 +08:00
|
|
|
# version: 2.0.1
|
2019-05-10 15:48:41 +08:00
|
|
|
# author: J. de Faye, tgxworld
|
2014-07-20 20:01:34 +01:00
|
|
|
|
2020-02-07 17:02:23 +00:00
|
|
|
# omniauth-openid is not included in core since v2.4.0.beta10
|
2022-12-29 12:35:01 +00:00
|
|
|
unless defined?(OmniAuth::Strategies::OpenID)
|
|
|
|
gem "ruby-openid", "2.9.2", require: false
|
2024-02-15 21:12:26 +00:00
|
|
|
gem "rack-openid", "1.4.2", require: false
|
|
|
|
gem "omniauth-openid", "2.0.1"
|
2020-02-07 17:02:23 +00:00
|
|
|
end
|
|
|
|
|
2022-12-29 12:35:01 +00:00
|
|
|
gem "omniauth-steam", "1.0.6"
|
2019-05-10 15:48:41 +08: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
|
|
|
|
2024-05-17 12:16:46 +02:00
|
|
|
require_relative "lib/auth/steam_authenticator"
|
|
|
|
require_relative "lib/validators/enable_steam_logins_validator"
|
2014-07-20 20:01:34 +01:00
|
|
|
|
2022-12-29 12:35:01 +00:00
|
|
|
auth_provider authenticator: Auth::SteamAuthenticator.new, icon: "fab-steam"
|