diff --git a/Gemfile.lock b/Gemfile.lock index f6935f0..d1999e3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - omniauth-bn-launcher (0.1.0) + omniauth-bn-launcher (0.1.3) omniauth (~> 1.3, >= 1.3.2) omniauth-oauth2 (= 1.5.0) diff --git a/lib/omniauth-bn-launcher/version.rb b/lib/omniauth-bn-launcher/version.rb index 3361d58..63a704c 100644 --- a/lib/omniauth-bn-launcher/version.rb +++ b/lib/omniauth-bn-launcher/version.rb @@ -1,7 +1,7 @@ module OmniAuth module Bn module Launcher - VERSION = "0.1.2" + VERSION = "0.1.3" end end end diff --git a/lib/omniauth/strategies/bn_launcher.rb b/lib/omniauth/strategies/bn_launcher.rb index 03d65ae..8ba736e 100644 --- a/lib/omniauth/strategies/bn_launcher.rb +++ b/lib/omniauth/strategies/bn_launcher.rb @@ -51,6 +51,8 @@ def callback_phase response = Rack::Response.new response.redirect redirect_url response.finish + elsif !request.params["message"].nil? + fail!(request.params["message"]) else super end