Code Monkey home page Code Monkey logo

spree_social's People

Contributors

bbonislawski avatar damianlegawiec avatar dpritchett avatar futhr avatar geekoncoffee avatar hf2186 avatar hoshinotsuyoshi avatar jackkinsella avatar jdutil avatar jschwertfeger avatar krzysiek1507 avatar laertispappas avatar lani13 avatar lbrapid avatar mauazua avatar parndt avatar ph1ll avatar pszyszkaspark avatar radar avatar rociiu avatar roshan92 avatar salbertson avatar sbounmy avatar suryart avatar swrobel avatar szymoniwacz avatar traels avatar vladimir-shidlovsky avatar vygovskysergey avatar wuboy0307 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spree_social's Issues

Bundler could not find compatible versions for gem "spree_core"

I just updated my Gemfile from:
gem 'spree', '1.1.2.rc1'
to:
gem 'spree', :git => "git://github.com/spree/spree.git", :branch => '1-2-stable'

and now I'm getting this error when I run bundle update:

Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree_social (>= 0) ruby depends on
spree_core (~> 1.1.0) ruby

spree (>= 0) x86-mingw32 depends on
  spree_core (1.2.0)</code>

fire_event spree.user.signup does not get called.

This gem overwrites the create function in the user_registrations controller, but it fails to call the fire_event function for spree.user.signup. The function in the users_registrations_controller_decorator.rb should be updated to call this function on successful creation of the user. I posted this issue so others can potentially find out why this event is not getting called if you use spree_social.

I patched this by overriding the function like this:

def create
build_resource(params[:user])
if @user.save
  set_flash_message(:notice, :signed_up)
  sign_in(:user, @user)
  fire_event('spree.user.signup', :user => @user, :order => current_order(true))
  sign_in_and_redirect(:user, @user)
else
  clean_up_passwords(@user)
  render :new
end
session[:omniauth] = nil unless @user.new_record?
 end

Spree 1.2.x+ support status?

I can't seem to get this working with 1.2+, I'm assuming it is not supported? Any estimate on when work will be done to support it?

Unable to use signup when spree_social is being used.

When i use spree social and click on signup, the following happens

image

The application trace is as follows

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/spree_social-0b88f0ba9d8d/app/views/spree/shared/_user_form.html.erb:5:in _dc4bc7eaa0826285b15db3cb5e200082' actionpack (3.2.13) lib/action_view/template.rb:145:inblock in render'
activesupport (3.2.13) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.13) lib/action_view/template.rb:143:inrender'
deface (0.9.1) lib/deface/action_view_extensions.rb:37:in render' actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:265:inrender_partial'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:238:in block in render' actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:inblock in instrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument'
actionpack (3.2.13) lib/action_view/renderer/partial_renderer.rb:237:in render' actionpack (3.2.13) lib/action_view/renderer/renderer.rb:41:inrender_partial'
actionpack (3.2.13) lib/action_view/renderer/renderer.rb:15:in render' actionpack (3.2.13) lib/action_view/helpers/rendering_helper.rb:24:inrender'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/spree_auth_devise-c6b21bfbecf2/app/views/spree/user_registrations/new.html.erb:16:in block in _2a4f1288c4038fac37aa0ccd86728fcb' actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:inblock in capture'
actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:187:in with_output_buffer' actionpack (3.2.13) lib/action_view/helpers/capture_helper.rb:40:incapture'
actionpack (3.2.13) lib/action_view/helpers/form_helper.rb:378:in form_for' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/spree_auth_devise-c6b21bfbecf2/app/views/spree/user_registrations/new.html.erb:14:in_2a4f1288c4038fac37aa0ccd86728fcb'
actionpack (3.2.13) lib/action_view/template.rb:145:in block in render' activesupport (3.2.13) lib/active_support/notifications.rb:125:ininstrument'
actionpack (3.2.13) lib/action_view/template.rb:143:in render' deface (0.9.1) lib/deface/action_view_extensions.rb:37:inrender'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:47:in block (2 levels) in render_template' actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:inblock in instrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:46:in block in render_template' actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:54:inrender_with_layout'
actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:45:in render_template' actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:18:inrender'
actionpack (3.2.13) lib/action_view/renderer/renderer.rb:36:in render_template' actionpack (3.2.13) lib/action_view/renderer/renderer.rb:17:inrender'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:110:in _render_template' actionpack (3.2.13) lib/action_controller/metal/streaming.rb:225:in_render_template'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:103:in render_to_body' actionpack (3.2.13) lib/action_controller/metal/renderers.rb:28:inrender_to_body'
actionpack (3.2.13) lib/action_controller/metal/compatibility.rb:50:in render_to_body' actionpack (3.2.13) lib/abstract_controller/rendering.rb:88:inrender'
actionpack (3.2.13) lib/action_controller/metal/rendering.rb:16:in render' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render'
activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in block in ms' C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/benchmark.rb:295:inrealtime'
activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in ms' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:inblock in render'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:83:in cleanup_view_runtime' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:39:in render' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:10:indefault_render'
actionpack (3.2.13) lib/action_controller/metal/responder.rb:232:in default_render' actionpack (3.2.13) lib/action_controller/metal/responder.rb:160:into_html'
spree_core (1.3.2) lib/spree/core/responder.rb:19:in to_html' actionpack (3.2.13) lib/action_controller/metal/responder.rb:153:inrespond'
actionpack (3.2.13) lib/action_controller/metal/responder.rb:146:in call' spree_core (1.3.2) lib/spree/core/controller_helpers/respond_with.rb:20:inrespond_with'
devise (2.2.3) app/controllers/devise/registrations_controller.rb:8:in new' C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/bundler/gems/spree_auth_devise-c6b21bfbecf2/app/controllers/spree/user_registrations_controller.rb:20:innew'
actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action'
activesupport (3.2.13) lib/active_support/callbacks.rb:469:in _run__978196090__process_action__570692715__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch'
actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch'
actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' actionpack (3.2.13) lib/action_dispatch/routing/mapper.rb:42:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:incall'
spree_core (1.3.2) lib/spree/core/middleware/redirect_legacy_product_url.rb:13:in call' spree_core (1.3.2) lib/spree/core/middleware/seo_assist.rb:27:incall'
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:incall'
omniauth (1.1.4) lib/omniauth/strategy.rb:184:in call!' omniauth (1.1.4) lib/omniauth/strategy.rb:164:incall'
omniauth (1.1.4) lib/omniauth/strategy.rb:184:in call!' omniauth (1.1.4) lib/omniauth/strategy.rb:164:incall'
omniauth (1.1.4) lib/omniauth/strategy.rb:184:in call!' omniauth (1.1.4) lib/omniauth/strategy.rb:164:incall'
omniauth (1.1.4) lib/omniauth/strategy.rb:184:in call!' omniauth (1.1.4) lib/omniauth/strategy.rb:164:incall'
warden (1.2.1) lib/warden/manager.rb:35:in block in call' warden (1.2.1) lib/warden/manager.rb:34:incatch'
warden (1.2.1) lib/warden/manager.rb:34:in call' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:incall'
activerecord (3.2.13) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in_run__962910843__call__55540037__callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.13) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall'
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall'
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall'
rack (1.4.5) lib/rack/content_length.rb:14:in call' railties (3.2.13) lib/rails/rack/log_tailer.rb:17:incall'
rack (1.4.5) lib/rack/handler/webrick.rb:59:in service' C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:138:inservice'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:94:in run' C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:191:inblock in start_thread'

undefined method `save' for nil:NilClass

Whenever a new User tries to sign up with a regular email/password Combination, it doesnt seem to actually create it.

The problem must be in the override for "build_resource"

Unable to signin using FB/Google/Twitter

When i Signin using FB/Google/Twitter it redirects me to the home page and shows the following screenshot. The initial redirect happens correctly. Then I provide the credentials correctly for FB/Google then it redirects to the home page and shows this message
image

Error on Account Link

undefined method 'anonymous?' for nil:NilClass

spree_auth_devise-b1c5f6d1a114/app/views/spree/users/show.html.erb:45

using

gem 'spree',              '1.3.2'
gem 'spree_gateway',      github: 'spree/spree_gateway', branch: '1-3-stable'
gem 'spree_auth_devise',  github: 'spree/spree_auth_devise', branch: '1-3-stable'

gem "spree_social",       github: 'spree/spree_social', branch: "1-3-stable"

unable to open myaccount

I am unable to open my account on one machine but works fine on another machine. A weird problem

GIT
  remote: git://github.com/spree/spree_auth_devise.git
  revision: 3a43e27709e025aa53320b1349b4d09e1cd45b72
  branch: 1-3-stable
  specs:
    spree_auth_devise (1.0.0)
      cancan (~> 1.6.7)
      devise (~> 2.2.3)
      devise-encryptable (= 0.1.2)
      spree_core

GIT
  remote: git://github.com/spree/spree_email_to_friend.git
  revision: 03bc6eb450be60aff035f313cda63f7105628ffe
  branch: 1-3-stable
  specs:
    spree_email_to_friend (1.3)
      recaptcha (>= 0.3.1)
      spree_core (~> 1.3.0)

GIT
  remote: git://github.com/spree/spree_gateway.git
  revision: b13d777aecf348eeffba1fa8e2df95298af1a1ea
  branch: 1-3-stable
  specs:
    spree_gateway (1.2.0.rc2)
      savon (~> 1.2)
      spree_core (~> 1.0)

GIT
  remote: git://github.com/spree/spree_recently_viewed.git
  revision: 94da8eae4286fd5eac4319e21dffb0980a2e6d0a
  specs:
    spree_recently_viewed (1.1)
      spree_core (>= 1.0.0)

GIT
  remote: git://github.com/spree/spree_social.git
  revision: 87efe2d730a8d4cec2c843e451daacb710fb24b5
  branch: 1-3-stable
  specs:
    spree_social (2.3.0)
      oa-core
      omniauth
      omniauth-facebook
      omniauth-github
      omniauth-google-oauth2
      omniauth-twitter
      spree_core (~> 1.3.0)

GIT
  remote: git://github.com/spree/spree_wishlist.git
  revision: e61d10e0bf1bbbc3ef2148dc7773da7b8ed1ef50
  branch: 1-3-stable
  specs:
    spree_wishlist (1.3)
      spree_core (~> 1.3)

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (3.2.13)
      actionpack (= 3.2.13)
      mail (~> 2.5.3)
    actionpack (3.2.13)
      activemodel (= 3.2.13)
      activesupport (= 3.2.13)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.5)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.2.1)
    active_utils (1.0.5)
      activesupport (>= 2.3.11)
      i18n
    activemerchant (1.29.3)
      active_utils (>= 1.0.2)
      activesupport (>= 2.3.14)
      builder (>= 2.0.0)
      i18n
      json (>= 1.5.1)
      money
      nokogiri
    activemodel (3.2.13)
      activesupport (= 3.2.13)
      builder (~> 3.0.0)
    activerecord (3.2.13)
      activemodel (= 3.2.13)
      activesupport (= 3.2.13)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.13)
      activemodel (= 3.2.13)
      activesupport (= 3.2.13)
    activesupport (3.2.13)
      i18n (= 0.6.1)
      multi_json (~> 1.0)
    acts_as_list (0.1.4)
    akami (1.2.0)
      gyoku (>= 0.4.0)
      nokogiri (>= 1.4.0)
    arel (3.0.2)
    awesome_nested_set (2.1.5)
      activerecord (>= 3.0.0)
    aws-sdk (1.3.9)
      httparty (~> 0.7)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
      uuidtools (~> 2.1)
    bcrypt-ruby (3.0.1)
    bcrypt-ruby (3.0.1-x86-mingw32)
    builder (3.0.4)
    cancan (1.6.8)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.1)
      climate_control (>= 0.0.3, < 1.0)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.6.2)
    columnize (0.3.6)
    debugger (1.6.0)
      columnize (>= 0.3.1)
      debugger-linecache (~> 1.2.0)
      debugger-ruby_core_source (~> 1.2.1)
    debugger-linecache (1.2.0)
    debugger-ruby_core_source (1.2.2)
    deface (0.9.1)
      nokogiri (~> 1.5.0)
      rails (~> 3.1)
    devise (2.2.4)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (~> 3.1)
      warden (~> 1.2.1)
    devise-encryptable (0.1.2)
      devise (>= 2.1.0)
    erubis (2.7.0)
    execjs (1.4.0)
      multi_json (~> 1.0)
    faraday (0.8.7)
      multipart-post (~> 1.1)
    ffaker (1.12.1)
    gyoku (0.4.6)
      builder (>= 2.1.2)
    hashie (2.0.5)
    highline (1.6.11)
    hike (1.2.2)
    httparty (0.8.3)
      multi_json (~> 1.0)
      multi_xml
    httpauth (0.2.0)
    httpi (1.1.1)
      rack
    i18n (0.6.1)
    journey (1.0.4)
    jquery-rails (2.2.1)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.0)
    jwt (0.1.8)
      multi_json (>= 1.5)
    kaminari (0.13.0)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
      railties (>= 3.0.0)
    libv8 (3.11.8.17)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.23)
    money (5.0.0)
      i18n (~> 0.4)
      json
    multi_json (1.7.3)
    multi_xml (0.5.3)
    multipart-post (1.2.0)
    mysql2 (0.3.11)
    mysql2 (0.3.11-x86-mingw32)
    nokogiri (1.5.9)
    nokogiri (1.5.9-x86-mingw32)
    nori (1.1.5)
    oa-core (0.3.2)
    oauth (0.4.7)
    oauth2 (0.8.1)
      faraday (~> 0.8)
      httpauth (~> 0.1)
      jwt (~> 0.1.4)
      multi_json (~> 1.0)
      rack (~> 1.2)
    omniauth (1.1.4)
      hashie (>= 1.2, < 3)
      rack
    omniauth-facebook (1.4.1)
      omniauth-oauth2 (~> 1.1.0)
    omniauth-github (1.1.0)
      omniauth (~> 1.0)
      omniauth-oauth2 (~> 1.1)
    omniauth-google-oauth2 (0.1.17)
      omniauth (~> 1.0)
      omniauth-oauth2
    omniauth-oauth (1.0.1)
      oauth
      omniauth (~> 1.0)
    omniauth-oauth2 (1.1.1)
      oauth2 (~> 0.8.0)
      omniauth (~> 1.0)
    omniauth-twitter (0.0.16)
      multi_json (~> 1.3)
      omniauth-oauth (~> 1.0)
    orm_adapter (0.4.0)
    paperclip (2.8.0)
      activerecord (>= 2.3.0)
      activesupport (>= 2.3.2)
      cocaine (>= 0.0.2)
      mime-types
    polyamorous (0.5.0)
      activerecord (~> 3.0)
    polyglot (0.3.3)
    quick_magick (0.8.0)
    rabl (0.7.2)
      activesupport (>= 2.3.14)
      multi_json (~> 1.0)
    rack (1.4.5)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-ssl (1.3.3)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (3.2.13)
      actionmailer (= 3.2.13)
      actionpack (= 3.2.13)
      activerecord (= 3.2.13)
      activeresource (= 3.2.13)
      activesupport (= 3.2.13)
      bundler (~> 1.0)
      railties (= 3.2.13)
    railties (3.2.13)
      actionpack (= 3.2.13)
      activesupport (= 3.2.13)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    rake (10.0.4)
    ransack (0.7.2)
      actionpack (~> 3.0)
      activerecord (~> 3.0)
      polyamorous (~> 0.5.0)
    rdoc (3.12.2)
      json (~> 1.4)
    recaptcha (0.3.5)
    ref (1.0.5)
    sass (3.2.9)
    sass-rails (3.2.6)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    savon (1.2.0)
      akami (~> 1.2.0)
      builder (>= 2.1.2)
      gyoku (~> 0.4.5)
      httpi (~> 1.1.0)
      nokogiri (>= 1.4.0)
      nori (~> 1.1.0)
      wasabi (~> 2.5.0)
    select2-rails (3.3.2)
      sass-rails (>= 3.2)
      thor (~> 0.14)
    spree (1.3.2)
      spree_api (= 1.3.2)
      spree_cmd (= 1.3.2)
      spree_core (= 1.3.2)
      spree_dash (= 1.3.2)
      spree_promo (= 1.3.2)
      spree_sample (= 1.3.2)
    spree_api (1.3.2)
      spree_core (= 1.3.2)
      versioncake (= 0.4.0)
    spree_cmd (1.3.2)
      thor (>= 0.14.6)
    spree_core (1.3.2)
      activemerchant (~> 1.29.3)
      acts_as_list (= 0.1.4)
      awesome_nested_set (= 2.1.5)
      aws-sdk (~> 1.3.4)
      cancan (= 1.6.8)
      deface (>= 0.9.0)
      ffaker (~> 1.12.0)
      highline (= 1.6.11)
      jquery-rails (~> 2.2.0)
      kaminari (= 0.13.0)
      money (= 5.0.0)
      paperclip (~> 2.8)
      rabl (= 0.7.2)
      rails (~> 3.2.11)
      ransack (~> 0.7.2)
      select2-rails (~> 3.2)
      state_machine (= 1.1.2)
      stringex (~> 1.3.2)
    spree_dash (1.3.2)
      httparty (~> 0.8.1)
      spree_core (= 1.3.2)
    spree_promo (1.3.2)
      spree_core (= 1.3.2)
    spree_sample (1.3.2)
      spree_core (= 1.3.2)
    sprockets (2.2.2)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    state_machine (1.1.2)
    stringex (1.3.3)
    therubyracer (0.11.4)
      libv8 (~> 3.11.8.12)
      ref
    thor (0.18.1)
    tilt (1.4.1)
    treetop (1.4.12)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.37)
    uglifier (2.1.1)
      execjs (>= 0.3.0)
      multi_json (~> 1.0, >= 1.0.2)
    uuidtools (2.1.4)
    versioncake (0.4.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
    warden (1.2.1)
      rack (>= 1.0)
    wasabi (2.5.1)
      httpi (~> 1.0)
      nokogiri (>= 1.4.0)

PLATFORMS
  ruby
  x86-mingw32

DEPENDENCIES
  coffee-rails (~> 3.2.1)
  debugger
  execjs
  jquery-rails
  mysql2
  quick_magick
  rails (= 3.2.13)
  recaptcha
  sass-rails (~> 3.2.3)
  spree (= 1.3.2)
  spree_auth_devise!
  spree_email_to_friend!
  spree_gateway!
  spree_recently_viewed!
  spree_social!
  spree_wishlist!
  therubyracer
  uglifier (>= 1.0.3)
source 'https://rubygems.org'

gem 'rails', '3.2.13'


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'
gem 'execjs'

gem 'therubyracer', :platform => :ruby

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'quick_magick'
gem 'recaptcha'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
gem 'debugger'
gem 'spree', '1.3.2'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'




gem 'spree_wishlist', :github => 'spree/spree_wishlist', :branch=>'1-3-stable'
gem 'spree_email_to_friend', :github => 'spree/spree_email_to_friend',:branch=>'1-3-stable'
gem 'spree_recently_viewed', :github => 'spree/spree_recently_viewed'
gem 'spree_social', :github => 'spree/spree_social', :branch => '1-3-stable'

HTTPS callback from Facebook results in false CSRF detection

I have my facebook app configured with a httpS callback. This results in a ""Could not authenticate you from Facebook-Account because "Csrf detected"" error.

The auth on facebook's side actually succeeds, and the callback gets directed to
Spree::OmniauthCallbacksController#facebook (all good so far)

...which has the :ensure_proper_protocol before_filter setup
...which then redirects to the same url, but on HTTP
...which for some odd reason is routed to Spree::OmniauthCallbacksController#failure
....that then throws up the above error with an unsuccessful login.

Other than taking a wild guess that the encoded 'code' value sent by facebook includes the https domain value causing omniauth to treat the request as a forgery, I have no clue.

I have monkey patched my code with a "ssl_allowed :facebook" in my Spree::OmniauthCallbacksController decorator.

If this is indeed a problem not specific to my application, perhaps a more generic fix is to add a
"self.class.ssl_allowed_actions << #{provider}".to_sym"
in the provides_callback_for method.

how do you set the app path after sign in?

I have setup spree_social as directions dictated and have set the api keyy and secret key for Facebook authentication. Everything works except once a user logs in via Facebook api the user is forwarded to http://demo.spreecommerce.com/account. How do you fix this?

Ok--- Everything is now working great after I had set my domain url in the spree admin panel.

being redirected to railsdog on login?

When i try to sign in using facebook or add facebook authentication to my login i get logged in and redirected to railsdog at http://demo.spreecommerce.com/account#_=_

The authentication does not get added to my database and i do not log into my website. I have my facebook app ID/secret set up for localhost and I've been using it for over a year on my localhost with no problem.

I haven't tested the facebook login in a couple weeks but this didn't happen 2 weeks ago. I have since upgraded to spree 1.10 (from 1.0.3 and rails 3.2.3 (from 3.1.4) in the past 2 weeks.

I am currently using spree_social via the master branch:

gem 'spree_social', :git => 'git://raw.github.com/spree/spree_social.git', :branch => 'master'

Is there anything hardcoded into the master branch thats causing this? I tried looking but didnt find anything.

Can't use with spree 1.1.0.rc2

Hi,

I can't manage to install Spree social with spree 1.1.0.rc2

It gives me the error :

 Bundler could not find compatible versions for gem "spree_core":
 In Gemfile:
 spree_social (>= 0) ruby depends on
   spree_core (~> 1.1.0) ruby

spree (= 1.1.0.rc2) ruby depends on
   spree_core (1.1.0.rc2)

Thanks in advance

Route error after user denies access

I just did a fresh instalation of spree_social (branch: 2.1-stable), using Rails 4, and I followed the README line by line.
Login is working well, when I hit /users/auth/facebook. But if user denies access, thats what I get:

RuntimeError
Could not find a valid mapping for path "/users/auth/facebook/callback"

Request

Parameters:

{"error"=>"access_denied",
"error_code"=>"200",
"error_description"=>"Permissions error",
"error_reason"=>"user_denied",
"state"=>"b6f13b912ca5680802b5f6a31464e5ff82dd1a3fb18734b9"}

404 Not Found unless spree engine mounted as /

Hello. i have spree engine mounted :at => '/z'

#config/routes.rb
Shop::Application.routes.draw do
  mount Spree::Core::Engine, :at => '/z'
  root 'welcome#index'
end

when i try authenticate using facebook (click link) i got this error

Started GET "/z/users/auth/facebook" for 127.0.0.1 at 2013-09-19 20:09:59 +0400
Processing by Spree::OmniauthCallbacksController#passthru as HTML
  Parameters: {"provider"=>"facebook"}
  Rendered public/404.html (0.4ms)
Completed 404 Not Found in 124ms (Views: 9.3ms | ActiveRecord: 0.0ms)

if i mount spree at '/' all work as expected

#rake routes
Prefix Verb URI Pattern Controller#Action
spree     /z Spree::Core::Engine
 root GET /  welcome#index

Routes for Spree::Core::Engine:
                              spree_user_password POST     /users/password(.:format)                                                  spree/passwords#create
                          new_spree_user_password GET      /users/password/new(.:format)                                              spree/passwords#new
                         edit_spree_user_password GET      /users/password/edit(.:format)                                             spree/passwords#edit
                                                  PATCH    /users/password(.:format)                                                  spree/passwords#update
                                                  PUT      /users/password(.:format)                                                  spree/passwords#update
                    spree_user_omniauth_authorize GET|POST /users/auth/:provider(.:format)                                            spree/omniauth_callbacks#passthru {:provider=>/facebook|twitter|github|google_oauth2/}
                     spree_user_omniauth_callback GET|POST /users/auth/:action/callback(.:format)                                     spree/omniauth_callbacks#(?-mix:facebook|twitter|github|google_oauth2)
#...

Invalid route name with social and auth gems

Hello. My Gemfile:

gem 'spree', github: 'spree/spree'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise'
gem 'spree_i18n', github: 'spree/spree_i18n'
gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4'
gem 'paper_trail', github: 'airblade/paper_trail'
gem "spree_social", :git => "git://github.com/spree/spree_social.git"

after i've added spree_social and tried to run generator, i got an error:

โžœ shop git:(social) โœ— rails g spree_social:install

/Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:409:in `add_route': Invalid route name, already in use: 'new_spree_user_session'  (ArgumentError)
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: 
http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1440:in `add_route'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1417:in `decomposed_match'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1415:in `block in decomposed_match'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1306:in `block (2 levels) in member'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:718:in `scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1305:in `block in member'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1535:in `with_scope_level'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1304:in `member'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1415:in `decomposed_match'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1398:in `block in match'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1389:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1389:in `match'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:596:in `map_method'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:557:in `get'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:345:in `block in devise_session'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1087:in `block in resource'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1544:in `block (2 levels) in resource_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:718:in `scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1543:in `block in resource_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1535:in `with_scope_level'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1542:in `resource_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1086:in `resource'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:344:in `devise_session'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:234:in `block (4 levels) in devise_for'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:234:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:234:in `block (3 levels) in devise_for'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:418:in `with_devise_exclusive_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:233:in `block (2 levels) in devise_for'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:336:in `block in devise_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:835:in `block in constraints'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:718:in `scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:835:in `constraints'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:335:in `devise_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:224:in `block in devise_for'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:207:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:207:in `devise_for'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/spree_social-238e97d3c8fa/config/routes.rb:2:in `block in <top (required)>'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:514:in `instance_exec'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:514:in `block in with_default_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:718:in `scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:513:in `with_default_scope'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:314:in `eval_block'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:322:in `block in finalize!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:322:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:322:in `finalize!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/devise-3.0.3/lib/devise/rails/routes.rb:9:in `finalize_with_devise!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:45:in `block in finalize!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:44:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:44:in `finalize!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:17:in `reload!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/spree-f89d5c5c7780/core/lib/spree/core/engine.rb:26:in `block in <class:Engine>'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:36:in `call'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:44:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/user/code/venum-shop/config/environment.rb:5:in `<top (required)>'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
    from /Users/user/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:45:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

user_authentications without user

> Spree::UserAuthentication.all.select{|v| v.user.nil? }
=> [#<Spree::UserAuthentication id: 5, user_id: 123, provider: "facebook", uid: "xxxxxxxxxx", created_at: "2012-07-19 10:07:34", updated_at: "2012-07-19 10:07:34">,  #<Spree::UserAuthentication id: 6, user_id: 512, provider: "google_oauth2", uid: "xxxxxxxxxx", created_at: "2012-07-19 10:15:55", updated_at: "2012-07-19 10:15:55">]

any idea how c'd this happen? This causes error:

NoMethodError: undefined method `serialize_into_session' for Symbol:Class

[GEM_ROOT]/gems/devise-2.0.4/lib/devise/rails/warden_compat.rb:19:in `serialize'
[GEM_ROOT]/gems/warden-1.1.1/lib/warden/session_serializer.rb:25:in `store'
[GEM_ROOT]/gems/warden-1.1.1/lib/warden/proxy.rb:161:in `set_user'
[GEM_ROOT]/gems/devise-2.0.4/lib/devise/controllers/helpers.rb:124:in `sign_in'
[GEM_ROOT]/gems/devise-2.0.4/lib/devise/controllers/helpers.rb:236:in `sign_in_and_redirect'
(eval):13:in `facebook'
[GEM_ROOT]/gems/actionpack-3.2.6/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
[GEM_ROOT]/gems/actionpack-3.2.6/lib/abstract_controller/base.rb:167:in `process_action'
[GEM_ROOT]/gems/actionpack-3.2.6/lib/action_controller/metal/rendering.rb:10:in `process_action'
[GEM_ROOT]/gems/actionpack-3.2.6/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
[GEM_ROOT]/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:524:in `_run__271410053019927760__process_action__2888712652450066131__callbacks'
[GEM_ROOT]/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
[GEM_ROOT]/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
[GEM_ROOT]/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'

Default permissions which omniauth asks for from Facebook are too demanding

By default omniauth devise asks for permissions for access a Facebook user's data at any time (as well as the basic info and email permissions). The net effect of this is fear. 50% of my users reject the permissions. With ecommerce applications I imagine a good default would be just to get their email address and their name.

I'm going to look into devise to see if there is an easy way to change this default conveniently.

Facebook Connect Error

Attempting to Login to Facebook is responding with:

{
"error": {
"message": "Missing client_id parameter.",
"type": "OAuthException",
"code": 101
}
}

The API Key and Secret Code are plugged in. This is testing from my local machine on port 3000. The domain name on the local machine matches the domain plugged into Facebook.

Ideas?

forget password link broken as uninitialized constant Spree::PasswordsController

Hi,

  • Forget password issue - this issue raising when used spree_auth_devise +
    spree_social (2-1-stable) branches combination only.
  • It need to redirect to change password form when click on email reset password
    link but it goes wrong as giving below error
    ActionController::RoutingError (uninitialized constant Spree::PasswordsController):
    • spree-2-1-stable + spree_auth_devise-2-1-stable + spree_social(2-1-stable)
    • Gemfile:
      source 'https://rubygems.org' gem 'rails', '4.0.0' gem 'pg' gem 'airbrake' gem 'sass-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 1.2' group :doc do gem 'sdoc', require: false end gem 'spree', github: 'spree/spree', branch: '2-1-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable' gem 'spree_social', :git => 'git://github.com/spree/spree_social.git', :branch => '2-1-stable'
    • stack trace
      I, [2013-12-17T11:35:23.242788 #19157] INFO -- : Completed 200 OK in 146ms (Views: 29.7ms | ActiveRecord: 5.7ms) I, [2013-12-17T11:35:28.211275 #19157] INFO -- : Started GET "/users/password/edit?reset_password_token=[FILTERED]" for 127.0.0.1 at 2013-12-17 11:35:28 +0530 F, [2013-12-17T11:35:28.228861 #19157] FATAL -- : ActionController::RoutingError (uninitialized constant Spree::PasswordsController): activesupport (4.0.0) lib/active_support/inflector/methods.rb:228:in const_get' activesupport (4.0.0) lib/active_support/inflector/methods.rb:228:inblock in constantize' activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:in each' activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:ininject' activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:in constantize' actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:76:incontroller_reference'

Please let me know If you need any more information and posted same in spree_auth_devise also earlier.

Thanks in advance.

undefined method `to_key' for :spree_user:Symbol

Hello

spree_social is not working for me after upgrading to spree_core 1-3-stable.

I have followed the instructions to configure it as usual and then, when I have the callback from Fb to my spree The exception below appears:

Processing by Spree::OmniauthCallbacksController#facebook as HTML
  Parameters: {"code"=>"AQDw6povQjlz_eby66UM-FlrfnJy-oLT3O6aM8mZoBXHHRwLqym-S54nsLE7BcFboQvnXHI7d08Edo0Aqbct0VudANcow9-ytJoveJAhzhihgZCG7M01iGAnCvDY20lCyDehlHaHB8lkqXXQzI54Up9J_nbvx9ksnX2s_1F85hiDM0M7ZTMjeipaWCYrGIBonvhMn2yuAfyvkp22tjIZOu8jnV1exExIP9QMxNsezdcU7YKi4PgM3-K8r8_edho6VQFwPhIIP12aOKR6XkkIXcGkpTxGhhQQwYRujj8Vr5IOrr7cYunREhwAPm2yXZPE_jg", "state"=>"2c41b6666cd5b5e44b54f99a6b994bf4468f86b45c6ca23f"}
Completed 500 Internal Server Error in 485ms

NoMethodError (undefined method `to_key' for :spree_user:Symbol):
  devise (2.2.4) lib/devise/models/authenticatable.rb:204:in `serialize_into_session'
  devise (2.2.4) lib/devise.rb:430:in `block (2 levels) in configure_warden!'
  warden (1.2.3) lib/warden/session_serializer.rb:26:in `store'
  warden (1.2.3) lib/warden/proxy.rb:175:in `set_user'
  devise (2.2.4) lib/devise/controllers/helpers.rb:124:in `sign_in'
  devise (2.2.4) lib/devise/controllers/helpers.rb:244:in `sign_in_and_redirect'
  (eval):13:in `facebook'
  actionpack (3.2.14) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.14) lib/abstract_controller/base.rb:167:in `process_action'

My Gemfile.lock:

  remote: https://github.com/spree/spree_social.git
  revision: 47f5239857f41234103b9c8abf62e8e41b258a57

  remote: https://github.com/spree/spree.git
  revision: fa561225f56042db1ccd80807a9fa209c4405433

  remote: https://github.com/spree/spree_auth_devise
  revision: b2b82f1bbe4b47a0713bcf70af8b3c17fa39c0d0

Conflict between Spree_social and Spree_auth_devise

Hi,

When I using the spree_social for spree-2.0 there is problem raising with signup form
as missing with password fields.

My guess is that spree_social may hiding the signup form passwords fields..
So conflict between the spree_auth_devise and spree_social.

Any Ideas? Please check this issue from your side also.

RuntimeError in UserSessionsController#merge

RuntimeError in UserSessionsController#merge
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id

Steps to reproduce:

  1. Create a normal account.
  2. Log out
  3. Try to login trough some social source with same e-mail as normal account
  4. Log in with invalid credentials to 'merge'

Gemfile:
gem 'spree', '~> 0.60.0'
gem 'spree_static_content'
gem 'spree_social', :git => 'git://github.com/spree/spree_social.git', :tag => 'v1.2'

Seems the merge method in the UserSessionsController does not account for invalid credentials

How to use this gem

So I have followed all the instructions, but still can't see any authentication sources on the Spree homepage. Am I not doing something?

I'm running on Spree 1.1.1, Rails 3.2.3, and have the Facebook API keys set. What else should I do?

Can't use with spree 1.1.0

So I just followed the setup instructions for spree (https://github.com/spree/spree) and then tried to add spree_social.

My bundle update sits in an infinite loop. My bundle install gives me an idea of why:

Bundler could not find compatible versions for gem "spree_core":
  In snapshot (Gemfile.lock):
    spree_core (1.1.0)

  In Gemfile:
    spree_social (>= 0) ruby depends on
      spree_core (~> 1.0.0) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

So the newest spree and spree_social reference different versions of spree_core. That can't work..?

My gemfile for your reference:

source 'https://rubygems.org'

gem 'rails', '3.2.3'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platform => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
gem 'spree'
gem 'spree_usa_epay'
gem 'spree_skrill'
gem "spree_social", :git => "git://github.com/spree/spree_social.git"

UserAuthentication association is not destroyed with user destruction

Hi,

I was using this nice plugin in our application
and I found that there is a small issue that caused me a problem on my site

in User decorator
you are adding

has_many :user_authentications

I think it should be

has_many :user_authentications, :dependent => :destroy

Without that, destroying users will leave the authentication record behind and next time user registers will face an exception

Thanks,
bionuc

Google fails

I 've created a key in the url https://code.google.com/apis/console/b/0/
Google have created the data like
Client ID:
[email protected]
Client secret:
VqL9HtrgqVxQhzGnv2pGHYuF
Redirect URIs: https://localhost:3000/oauth2callback
JavaScript origins: https://localhost:3000

But when I follow the link with google authentication then I get
OAuth::Unauthorized in ContentsController#show
400 Bad Request

oauth (0.4.5) lib/oauth/consumer.rb:219:in token_request' oauth (0.4.5) lib/oauth/consumer.rb:139:inget_request_token'
oa-oauth (0.2.6) lib/omniauth/strategies/google.rb:65:in request_phase' oa-core (0.2.6) lib/omniauth/strategy.rb:58:inrequest_call'
oa-core (0.2.6) lib/omniauth/strategy.rb:41:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
oa-core (0.2.6) lib/omniauth/strategy.rb:44:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
oa-core (0.2.6) lib/omniauth/strategy.rb:44:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
oa-core (0.2.6) lib/omniauth/strategy.rb:44:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
oa-core (0.2.6) lib/omniauth/strategy.rb:44:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
oa-core (0.2.6) lib/omniauth/strategy.rb:44:in call!' oa-core (0.2.6) lib/omniauth/strategy.rb:30:incall'
spree_core (0.60.0) lib/middleware/seo_assist.rb:23:in call' spree_core (0.60.0) lib/redirect_legacy_product_url.rb:10:incall'
warden (1.0.5) lib/warden/manager.rb:35:in block in call' warden (1.0.5) lib/warden/manager.rb:34:incatch'
warden (1.0.5) lib/warden/manager.rb:34:in `call'

Should I register my application in the different place?

Invalid credentials

Recently I ran into some invalid credentials errors while using this gem on Heroku, I couldn't log in in production/staging mode, the weird thing is that it worked perfectly on my local setup. I saw that I didn't specified a ruby version on my Gemfile so that made my app in Heroku use Ruby 2.0 by default. Specifying the Ruby version on my Gemfile to 1.9.3 made it work on Heroku.

tl;dr
It's not compatible with Ruby 2.0

Facebook Metatags Req'd

Facebook expects the following parameters as part of the authentication request: og:url, og:type, and og:title. The error message from facebook complained of an invalid_redirect_uri but no url would suffice. Pasting the request into the Facebook debugger revealed that these parameters were required.

My solution was to put the following into a Facebook partial:

https://gist.github.com/1280380

I looked at a more complete Facebook login mplementation for Word Press that used variables instead of hard-coded strings and had an admin interface.

https://developers.facebook.com/docs/opengraph/

Routes should be stated under spree namespace

Hi All,

First, thanks for your great work :)

I faced a problem with spree_social because I have non-spree controllers using same look and feel of spree admin portal so they broke in two locations

app/views/overrides/admin_configuration_decorator.rb

admin_authentication_methods_path should have been spree.admin_authentication_methods_path

app/views/spree/admin/shared/_configurations_menu.html.erb

admin_authentication_methods_path should have been spree.admin_authentication_methods_path

This way it will work in all cases. I needed to pull the branch "1-3-stable" locally and rely on local gem so that I fix the override problem as I was not able to override it from the app maybe because of lack of knowledge

Thanks

Installing from Gem doesn't work

Hi, I installed this from the gem (added spree_social to bundle) and when I browsed the course code I saw that certain folders were missing (e.g. config). When running the code it errored due to lacking files such as it's custom routes. I'm investigating now.

Unedefined local variable/method - current_currency

Using Spree 1.3, spree_social master-branch

Whenever the callback from one of the external logins happens, I get an error telling me that current_currency is undefined. The method that is causing that error is the 'current_order' method, ocated in spree/core/lib/spree/core/controller_helpers/order.rb

Redirecting to Railsdogradio

This must be a stupid question, but..

  1. I'm running my Spree app in development mode on my computer
  2. I have configured my Spree app in Twitter and Facebook
  3. I have configured my Spree app in http://localhost:3000/admin/authentication_methods to support Twitter and Facebook authentication

Now when I try to sign up with Twitter or Facebook in my app, why does it ask if the Railsdogradio demo app http://demo.spreecommerce.com can use my account and redirects to that site? I'm trying to get it to ask if my Spree app can use my account and redirect to my Spree app instead. Have I configured something wrong?

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):

I have ruby 1.9.2-p290 and rails 3.0 on my local machine

I have created github account, I went there and have allowed the login but when github sends me back to http://localhost:3000/user_authentications/auth/github/callback?code=f5d86c03cb9ffef9b9e2 I get error:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):

my trace is:
/home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:in connect' /home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:inblock in connect'
/home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:44:in timeout' /home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:89:intimeout'
/home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:678:in connect' /home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:637:indo_start'
/home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:626:in start' /home/kritik/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb:1168:inrequest'
faraday (0.6.1) lib/faraday/adapter/net_http.rb:51:in call' faraday (0.6.1) lib/faraday/request/url_encoded.rb:14:incall'
faraday (0.6.1) lib/faraday/request.rb:88:in run' faraday (0.6.1) lib/faraday/request.rb:28:inrun'
faraday (0.6.1) lib/faraday/connection.rb:170:in run_request' oauth2 (0.4.1) lib/oauth2/client.rb:63:inrequest'
oauth2 (0.4.1) lib/oauth2/strategy/web_server.rb:15:in `get_access_token'

what can I fix it?

Exception raised when user denies authentication

Hi, I get this error when a user doesn't allow my app to access their details.

A NoMethodError occurred in omniauth_callbacks#failure:

undefined method new_user_authentication_session_path' for #<Devise::OmniauthCallbacksController:0x00000005e04908> .bundle/gems/ruby/1.9.1/gems/devise-1.2.rc/lib/devise/controllers/url_helpers.rb:30:innew_session_path'
------------------------------- Request:

  • URL : http://www.mysite.com/user_authentications/auth/facebook/callback?error_reason=user_denied&error=access_denied&error_description=The+user+denied+your+request.
  • Parameters: {"error_reason"=>"user_denied", "error"=>"access_denied", "error_description"=>"The user denied your request."}
    
    bundle/gems/ruby/1.9.1/gems/devise-1.2.rc/lib/devise/controllers/url_helpers.rb:30:in `new_session_path'
    .bundle/gems/ruby/1.9.1/gems/devise-1.2.rc/app/controllers/devise/omniauth_callbacks_controller.rb:24:in`after_omniauth_failure_path_for'
    .bundle/gems/ruby/1.9.1/gems/devise-1.2.rc/app/controllers/devise/omniauth_callbacks_controller.rb:6:in `failure'
    .bundle/gems/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/implicit_render.rb:4:in`send_action'
    .bundle/gems/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/base.rb:150:in `process_action'
    .bundle/gems/ruby/1.9.1/gems/actionpack-3.0.4/lib/action_controller/metal/rendering.rb:11:in`process_action'
    .bundle/gems/ruby/1.9.1/gems/actionpack-3.0.4/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
    .bundle/gems/ruby/1.9.1/gems/activesupport-3.0.4/lib/active_support/callbacks.rb:440:in`_run__1684219365671981401__process_action__74457555302622986__callbacks'
    

undefined local variable or method `admin_authentication_methods_path'

Help! Any suggestions?

ActionView::Template::Error (undefined local variable or method `admin_authentication_methods_path' for #<#Class:0x105b31810:0x105b2e868>):
1:
2: <%= link_to t("social_servers"), admin_authentication_methods_path %>
3: <%= t("social_servers_description") %>
4:

Can only login on "Rails Dog Radio" app not my own app

Hi everyone! I created a new social method with my facebook app-id and secret, however when i hit "Sign in with facebook" I'm redirected to the "Rails Dog Radio" app instead of my own app.

Am I doing something wrong or is this a bug?

Thanks in advance!

Ask for additional permissions from facebook

By default, spree_social asks for: basic info and email address from facebook. I would like to ask for additional permissions as well (like user_birthday and user_likes). Any ideia on how can I do that? It would be really nice if we could set those permissions in the admin interface through a scope field (that's how Devise calls it).

Thanks!
Andre

ActionDispatch::Cookies::CookieOverflow) - spree_social:2.1

Recently I have installed spree_social from 2-1-stable branch to spree-2-1-stable.

where I could get success on about twitter but not facebook.

For facebook, I am getting the below error while redirecting from the facebook after gave auth credentials as I have setup the keys from the admin interface-configuration.

Error:

Sometimes:

ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow)

Or
omniauth: (facebook) Authentication failure! invalid_credentials: OAuth2::Error, :
{"error":{"message":"Error validating client secret.","type":"OAuthException","code":1}}

Could not find a valid mapping for path "/users/auth/facebook/callback"

Can you please let me know, Is there anything I have missed for this setup ?

Return Url

Is it possible to set a custom url to return to instead of /account?

Missing omniauth route in spree 1.3

Hi,

I'm using spree 1.3 with fancy_theme adn spree_social (1.3 branch).
I configured it with a Twitter API, adn when try to login i get:

undefined method `user_omniauth_authorize_url' for #ActionDispatch::Routing::RoutesProxy:0x0000000b010dc8

after a rake routes I think the correct url must be:

spree_user_omniauth_authorize_url

The view is:

spree_auth_devise-b2b82f1bbe4b/app/views/spree/user_sessions/new.html.erb

It's a bug or just a missing note in the readme?

TIA

Production Install Failure

When running the following command from the ReadMe file for production:

bundle exec rake spree_social:install

The following error occurs:

rake aborted!
Don't know how to build task 'spree_social:install'

Is there another command that needs to be run?

NoMethodError occurred in omniauth_callbacks#facebook

Receiving a sporadic exception (one per 30-50 Facebook authentications) in production using the Spree 2-0-stable stack.

URL: /users/auth/facebook/callback?code=CODE
BACKTRACE:
A NoMethodError occurred in omniauth_callbacks#facebook:

undefined method `user' for nil:NilClass
vendor/bundle/ruby/1.9.1/bundler/gems/spree_social-    3b9139eaf8f9/app/controllers/spree/omniauth_callbacks_controller.rb:42:in `facebook'

SESSION (leaving in only the keys that had values)


    data: {"_csrf_token"=>
    "access_token"=> ,
    "order_id"=> ,
    "spree_user_return_to"=>"/checkout/payment",
    "omniauth"=>
     {"provider"=>"facebook",
      "uid"=>,
      "info"=>
       {"nickname"=> 
        "name"=>
        "first_name"=>
        "last_name"=>
        "image"=>
        "description"=>
        "location"=>
        "verified"=>true},
      "credentials"=>
       {"token"=>
       ,
        "expires_at"=>,
        "expires"=>true}},
     "_turbolinks_redirect_to"=>
      "/user/spree_user/sign_up"}

login problem

when i want to login from facebook id i am getting
ActionController::RoutingError (uninitialized constant Spree::Users):
i dont know from where this error is comming i am not be able to login from facebook

please help me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.