lib/omniauth/strategies/bn_launcher.rb in omniauth-bn-launcher-0.1.1 vs lib/omniauth/strategies/bn_launcher.rb in omniauth-bn-launcher-0.1.3

- old
+ new

@@ -49,10 +49,12 @@ def callback_phase if request.base_url == options[:default_callback_url] response = Rack::Response.new response.redirect redirect_url response.finish + elsif !request.params["message"].nil? + fail!(request.params["message"]) else super end end @@ -67,10 +69,11 @@ { :name => raw_info['name'], :email => raw_info['email'], :image => raw_info['image'], :username => raw_info['username'], - :customer => options[:customer] + :customer => options[:customer], + :roles => raw_info['roles'] } end extra do { \ No newline at end of file