Git Product home page Git Product logo

solidus_social's Introduction

SolidusSocial

CircleCI Code Climate

Social login support for Solidus. Solidus Social handles authorization, account creation and association through third-party services. Currently Facebook, Github and Google OAuth2 are available out of the box.

Installation

Add solidus_social to your Gemfile:

gem 'solidus_social'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_social:install
bundle exec rails db:migrate

This will install a new initializer config/initializers/solidus_social.rb into your project that allows you to setup the services you want configured for your app.

Optional: By default the login path will be '/users/auth/:provider'. If you want something else, configure it in config/initializers/solidus_social.rb.

Using OAuth Sources

Login as an admin user and navigate to Configuration > Social Authentication Methods

Click "New Authentication Method" and choose one of your configured providers.

You MUST restart your application after configuring or updating an authentication method.

Registering Your Application

Facebook, Github and Google OAuth2 are supported out of the box but, you will need to register your application with each of the sites you want to use.

When setting up development applications, keep in mind that most services do not support localhost for your URL/domain. You will need to us a regular domain (i.e. domain.tld, hostname.local) or an IP addresses (127.0.0.1). Make sure you specifity the right IP address.

Facebook

Facebook / Developers / Apps

  1. Name the app and agree to the terms.
  2. Fill out the capcha.
  3. Under the "Web Site" tab enter:
  • Site URL: http://yourhostname.local:3000 for development and http://your-site.com for production
  • Site domain: yourhostname.local and your-site.com respectively

Github

Github / Applications / Register a new OAuth application

  1. Name the application.
  2. Fill in the details
  • Main URL: http://yourhostname.local:3000 for development and http://your-site.com for production
  • Callback URL: http://yourhostname.local:3000 for development and http://your-site.com for production
  1. Click Create.

Google OAuth2

Google / APIs / Credentials/ Create Credential

  1. In the APIs and Services dashboard, visit 'Credentials' on the side, then select 'Create Credentials' and 'Oauth client ID'.
  2. Name the Application, select "Web Application" as a type.
  3. Under "Authorized redirect URIs", add your site (example: http://localhost:3000/users/auth/google_oauth2/callback)

More info: https://developers.google.com/identity/protocols/OAuth2

Other OAuth Providers

Other OAuth providers are supported, given that there is an OmniAuth strategy for them. (If there isn't, you can write one.)

LinkedIn Example

  1. Add gem "omniauth-linkedin" to your Gemfile and run bundle install.

  2. In config/initializers/solidus_social.rb add and initialize a new provider for SolidusSocial:

      config.providers = {
        # The configuration key has to match your omniauth strategy.
        linkedin: {
          api_key: ENV['LINKEDIN_API_KEY'],
          api_secret: ENV['LINKEDIN_API_SECRET'],
        },
        # More providers here
  3. Activate your provider as usual.

  4. Do one of the following:

    • Override the spree/users/social view to render OAuth links to display your LinkedIn link.
    • Include in your CSS a definition for .icon-spree-linkedin-circled and an embedded icon font for LinkedIn from [Fontello][14] (the way existing icons for Facebook etc are implemented). You can also override CSS classes for other providers, .icon-spree-<provider>-circled, to use different font icons or classic background images, without having to override views.

Apple Id Example

  1. Add gem "omniauth-apple" to your Gemfile and run bundle install.

  2. In config/initializers/solidus_social.rb add and initialize a new provider for SolidusSocial:

      config.providers = {
         apple:          {
           icon:   'fa-apple',
           title:  'Apple'
         },
        # More providers here

    add its configuration after SolidusSocial.init_providers line:

      Devise.setup do |config|
        # The configuration key has to match your omniauth strategy.
        config.omniauth :apple, ENV['APPLE_CLIENT_ID'], '',
                        scope:    'email',
                        team_id:  ENV['APPLE_TEAM_ID'],
                        key_id:   ENV['APPLE_KEY_ID'],
                        pem:      ENV['APPLE_PRIVATE_KEY'].gsub('\n', "\n")
      end

    Notice: APPLE_PRIVATE_KEY should consist from one-line p8-file content, like this '\n-----BEGIN PRIVATE KEY-----\nsecret\n-----END PRIVATE KEY-----\n'

Documentation

API documentation is available [on RubyDoc.info][15].

Contributing

See corresponding guidelines.

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app.

bundle
bin/rake

When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:

require 'solidus_social/factories'

Releasing

Your new extension version can be released using gem-release like this:

bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release

License

Copyright (c) 2014 John Dyer and contributors, released under the New BSD License

solidus_social's People

Contributors

aitbw avatar aldesantis avatar blocknotes avatar bosskovic avatar braidn avatar ccarruitero avatar dependabot-preview[bot] avatar elia avatar futhr avatar geekoncoffee avatar jackkinsella avatar jarednorman avatar jdutil avatar jhawthorn avatar jschwertfeger avatar kennyadsl avatar lbrapid avatar mamhoff avatar memotoro avatar parndt avatar ph1ll avatar piyushswain avatar pmn4 avatar radar avatar sbounmy avatar spaghetticode avatar swrobel avatar vitaliyadamkov avatar waiting-for-dev 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

Watchers

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

solidus_social's Issues

spree_authentication_methods tables has api_secret and api_key but they seem unused

It seems that the key/secret configuration is handled only via ENV variables loaded by the solidus_social.rb initializer. But there are those 2 columns in the spree_authentication_methods table, which seem to be not used (anymore?). Those columns appear also on the admin authentication list, and they're never populated. This is a bit confusing

installation issue

Hello,

i'm new with Ruby on Rails and i'm trying to install this extension but i get the following error

$ bundle exec rails g solidus_social:install
/Users/hectortoro/Documents/Desarrollo/solidus/config/application.rb:4:in require': cannot load such file -- neo4j/railtie (LoadError) from /Users/hectortoro/Documents/Desarrollo/solidus/config/application.rb:4:in <top (required)>'

any thought on what could be the problem

Error while integrating Twitter log-in

I followed all the instructions, I've got the api key and secret key in the initialiazer and the Twitter login activated from the admin dashboard, when trying to load the sign-in page I'm faced with this error:

NoMethodError in Spree::UserSessions#new
Showing /home/shalashtein/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/solidus_auth_devise-2.5.2/lib/views/frontend/spree/user_sessions/new.html.erb where line #19 raised:

undefined method `to_url' for "twitter":String
Did you mean?  to_r

log:

solidus_auth_devise (2.5.2) lib/views/frontend/spree/user_sessions/new.html.erb:19:in `block in _470a981580faf98256b174945037f966'
activerecord (6.0.3.4) lib/active_record/relation/delegation.rb:87:in `each'
activerecord (6.0.3.4) lib/active_record/relation/delegation.rb:87:in `each'
solidus_auth_devise (2.5.2) lib/views/frontend/spree/user_sessions/new.html.erb:18:in `_470a981580faf98256b174945037f966'
actionview (6.0.3.4) lib/action_view/base.rb:274:in `_run'
actionview (6.0.3.4) lib/action_view/template.rb:185:in `block in render'
activesupport (6.0.3.4) lib/active_support/notifications.rb:182:in `instrument'
actionview (6.0.3.4) lib/action_view/template.rb:385:in `instrument_render_template'
actionview (6.0.3.4) lib/action_view/template.rb:183:in `render'
deface (1.5.3) lib/deface/action_view_extensions.rb:43:in `render'
actionview (6.0.3.4) lib/action_view/renderer/template_renderer.rb:58:in `block (2 levels) in render_template'
actionview (6.0.3.4) lib/action_view/renderer/abstract_renderer.rb:88:in `block in instrument'
activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `block in instrument'
activesupport (6.0.3.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `instrument'
actionview (6.0.3.4) lib/action_view/renderer/abstract_renderer.rb:87:in `instrument'
actionview (6.0.3.4) lib/action_view/renderer/template_renderer.rb:57:in `block in render_template'
actionview (6.0.3.4) lib/action_view/renderer/template_renderer.rb:65:in `render_with_layout'
actionview (6.0.3.4) lib/action_view/renderer/template_renderer.rb:56:in `render_template'
actionview (6.0.3.4) lib/action_view/renderer/template_renderer.rb:13:in `render'
actionview (6.0.3.4) lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
actionview (6.0.3.4) lib/action_view/renderer/renderer.rb:29:in `render_to_object'
actionview (6.0.3.4) lib/action_view/rendering.rb:117:in `block in _render_template'
actionview (6.0.3.4) lib/action_view/base.rb:304:in `in_rendering_context'
actionview (6.0.3.4) lib/action_view/rendering.rb:116:in `_render_template'
actionpack (6.0.3.4) lib/action_controller/metal/streaming.rb:218:in `_render_template'
actionview (6.0.3.4) lib/action_view/rendering.rb:103:in `render_to_body'
actionpack (6.0.3.4) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
actionpack (6.0.3.4) lib/action_controller/metal/renderers.rb:142:in `render_to_body'
actionpack (6.0.3.4) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (6.0.3.4) lib/action_controller/metal/rendering.rb:36:in `render'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (6.0.3.4) lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
/home/shalashtein/.rbenv/versions/2.6.6/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
activesupport (6.0.3.4) lib/active_support/core_ext/benchmark.rb:14:in `ms'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (6.0.3.4) lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:43:in `render'
responders (3.0.1) lib/action_controller/responder.rb:240:in `default_render'
responders (3.0.1) lib/action_controller/responder.rb:172:in `to_html'
responders (3.0.1) lib/action_controller/responder.rb:165:in `respond'
responders (3.0.1) lib/action_controller/responder.rb:158:in `call'
responders (3.0.1) lib/action_controller/respond_with.rb:213:in `respond_with'
devise (4.7.3) app/controllers/devise/sessions_controller.rb:14:in `new'
actionpack (6.0.3.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (6.0.3.4) lib/abstract_controller/base.rb:195:in `process_action'
actionpack (6.0.3.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (6.0.3.4) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
activesupport (6.0.3.4) lib/active_support/callbacks.rb:135:in `run_callbacks'
actionpack (6.0.3.4) lib/abstract_controller/callbacks.rb:41:in `process_action'
actionpack (6.0.3.4) lib/action_controller/metal/rescue.rb:22:in `process_action'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `block in instrument'
activesupport (6.0.3.4) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (6.0.3.4) lib/active_support/notifications.rb:180:in `instrument'
actionpack (6.0.3.4) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
actionpack (6.0.3.4) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
activerecord (6.0.3.4) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack (6.0.3.4) lib/abstract_controller/base.rb:136:in `process'
actionview (6.0.3.4) lib/action_view/rendering.rb:39:in `process'
actionpack (6.0.3.4) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (6.0.3.4) lib/action_controller/metal.rb:254:in `dispatch'
actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:33:in `serve'
actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:18:in `block in <class:Constraints>'
actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:49:in `block in serve'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
railties (6.0.3.4) lib/rails/engine.rb:527:in `call'
railties (6.0.3.4) lib/rails/railtie.rb:190:in `public_send'
railties (6.0.3.4) lib/rails/railtie.rb:190:in `method_missing'
actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
actionpack (6.0.3.4) lib/action_dispatch/routing/mapper.rb:48:in `serve'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:49:in `block in serve'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (6.0.3.4) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (6.0.3.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
warden (1.2.9) lib/warden/manager.rb:34:in `catch'
warden (1.2.9) lib/warden/manager.rb:34:in `call'
rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3) lib/rack/etag.rb:27:in `call'
rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.3) lib/rack/head.rb:12:in `call'
actionpack (6.0.3.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/cookies.rb:648:in `call'
activerecord (6.0.3.4) lib/active_record/migration.rb:567:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (6.0.3.4) lib/active_support/callbacks.rb:101:in `run_callbacks'
actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
web-console (4.1.0) lib/web_console/middleware.rb:132:in `call_app'
web-console (4.1.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (4.1.0) lib/web_console/middleware.rb:17:in `catch'
web-console (4.1.0) lib/web_console/middleware.rb:17:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (6.0.3.4) lib/rails/rack/logger.rb:37:in `call_app'
railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `block in tagged'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `tagged'
railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
rack (2.2.3) lib/rack/runtime.rb:22:in `call'
activesupport (6.0.3.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/static.rb:126:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
actionpack (6.0.3.4) lib/action_dispatch/middleware/host_authorization.rb:82:in `call'
webpacker (4.3.0) lib/webpacker/dev_server_proxy.rb:23:in `perform_request'
rack-proxy (0.6.5) lib/rack/proxy.rb:57:in `call'
railties (6.0.3.4) lib/rails/engine.rb:527:in `call'
puma (4.3.6) lib/puma/configuration.rb:228:in `call'
puma (4.3.6) lib/puma/server.rb:713:in `handle_request'
puma (4.3.6) lib/puma/server.rb:472:in `process_client'
puma (4.3.6) lib/puma/server.rb:328:in `block in run'
puma (4.3.6) lib/puma/thread_pool.rb:134:in `block in spawn_thread'

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "codecov":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      codecov (~> 0.1.16)

Could not find gem 'codecov (~> 0.1.16)', which is required by gem 'solidus_dev_support', in any of the sources.

Bundler could not find compatible versions for gem "rubocop":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-performance (~> 1.5) was resolved to 1.6.1, which depends on
        rubocop (>= 0.71.0)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-rspec (~> 1.36) was resolved to 1.41.0, which depends on
        rubocop (>= 0.68.1)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop (~> 0.76.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 2.11.0.alpha, which depends on
      solidus_core (= 2.11.0.alpha)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_auth_devise was resolved to 2.4.0, which depends on
        solidus_core (>= 2.6, < 3)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Twitter Login OAuth::Unauthorized (400 Bad Request)

I followed the setup instructions, added by api key and the secret key and activated the Twitter login from the admin dashboard, when I try to login I'm faced with this error. Here's the log:

2020-11-25T11:46:40.361389+00:00 app[web.1]: I, [2020-11-25T11:46:40.361222 #4]  INFO -- : [7ea80c38-c944-4ce9-ab10-127989c16d03] Started GET "/users/auth/twitter?r=0.41000514506935737" for 185.97.92.126 at 2020-11-25 11:46:40 +0000
2020-11-25T11:46:40.362139+00:00 app[web.1]: I, [2020-11-25T11:46:40.362075 #4]  INFO -- omniauth: (twitter) Calling through to underlying application for setup.
2020-11-25T11:46:40.363256+00:00 app[web.1]: I, [2020-11-25T11:46:40.363193 #4]  INFO -- omniauth: (twitter) Request phase initiated.
2020-11-25T11:46:40.517903+00:00 app[web.1]: F, [2020-11-25T11:46:40.517744 #4] FATAL -- : [7ea80c38-c944-4ce9-ab10-127989c16d03]   
2020-11-25T11:46:40.517907+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] OAuth::Unauthorized (400 Bad Request):
2020-11-25T11:46:40.517908+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03]   
2020-11-25T11:46:40.517909+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] oauth (0.5.4) lib/oauth/consumer.rb:236:in `token_request'
2020-11-25T11:46:40.517910+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] oauth (0.5.4) lib/oauth/consumer.rb:155:in `get_request_token'
2020-11-25T11:46:40.517910+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth-oauth (1.1.0) lib/omniauth/strategies/oauth.rb:28:in `request_phase'
2020-11-25T11:46:40.517911+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth-twitter (1.4.0) lib/omniauth/strategies/twitter.rb:61:in `request_phase'
2020-11-25T11:46:40.517911+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth (1.9.1) lib/omniauth/strategy.rb:226:in `request_call'
2020-11-25T11:46:40.517912+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth (1.9.1) lib/omniauth/strategy.rb:188:in `call!'
2020-11-25T11:46:40.517912+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
2020-11-25T11:46:40.517912+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth (1.9.1) lib/omniauth/strategy.rb:192:in `call!'
2020-11-25T11:46:40.517913+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] omniauth (1.9.1) lib/omniauth/strategy.rb:169:in `call'
2020-11-25T11:46:40.517913+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
2020-11-25T11:46:40.517914+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] warden (1.2.9) lib/warden/manager.rb:34:in `catch'
2020-11-25T11:46:40.517914+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] warden (1.2.9) lib/warden/manager.rb:34:in `call'
2020-11-25T11:46:40.517914+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
2020-11-25T11:46:40.517915+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/etag.rb:27:in `call'
2020-11-25T11:46:40.517918+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
2020-11-25T11:46:40.517918+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/head.rb:12:in `call'
2020-11-25T11:46:40.517918+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
2020-11-25T11:46:40.517919+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
2020-11-25T11:46:40.517919+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
2020-11-25T11:46:40.517920+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/cookies.rb:648:in `call'
2020-11-25T11:46:40.517920+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
2020-11-25T11:46:40.517921+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] activesupport (6.0.3.4) lib/active_support/callbacks.rb:101:in `run_callbacks'
2020-11-25T11:46:40.517921+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
2020-11-25T11:46:40.517922+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
2020-11-25T11:46:40.517923+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
2020-11-25T11:46:40.517923+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
2020-11-25T11:46:40.517923+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] railties (6.0.3.4) lib/rails/rack/logger.rb:37:in `call_app'
2020-11-25T11:46:40.517924+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `block in call'
2020-11-25T11:46:40.517924+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `block in tagged'
2020-11-25T11:46:40.517925+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:28:in `tagged'
2020-11-25T11:46:40.517925+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] activesupport (6.0.3.4) lib/active_support/tagged_logging.rb:80:in `tagged'
2020-11-25T11:46:40.517925+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] railties (6.0.3.4) lib/rails/rack/logger.rb:26:in `call'
2020-11-25T11:46:40.517926+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
2020-11-25T11:46:40.517926+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/request_id.rb:27:in `call'
2020-11-25T11:46:40.517927+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/method_override.rb:24:in `call'
2020-11-25T11:46:40.517927+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/runtime.rb:22:in `call'
2020-11-25T11:46:40.517934+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] activesupport (6.0.3.4) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
2020-11-25T11:46:40.517935+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
2020-11-25T11:46:40.517935+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/static.rb:126:in `call'
2020-11-25T11:46:40.517936+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
2020-11-25T11:46:40.517936+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] actionpack (6.0.3.4) lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
2020-11-25T11:46:40.517936+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] railties (6.0.3.4) lib/rails/engine.rb:527:in `call'
2020-11-25T11:46:40.517937+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] puma (4.3.6) lib/puma/configuration.rb:228:in `call'
2020-11-25T11:46:40.517937+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] puma (4.3.6) lib/puma/server.rb:713:in `handle_request'
2020-11-25T11:46:40.517938+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] puma (4.3.6) lib/puma/server.rb:472:in `process_client'
2020-11-25T11:46:40.517938+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] puma (4.3.6) lib/puma/server.rb:328:in `block in run'
2020-11-25T11:46:40.517938+00:00 app[web.1]: [7ea80c38-c944-4ce9-ab10-127989c16d03] puma (4.3.6) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
2020-11-25T11:46:40.519319+00:00 heroku[router]: at=info method=GET path="/users/auth/twitter?r=0.41000514506935737" host=labbesne.herokuapp.com request_id=7ea80c38-c944-4ce9-ab10-127989c16d03 fwd="185.97.92.126" dyno=web.1 connect=1ms service=159ms status=500 bytes=1827 protocol=https
2020-11-25T11:46:41.186274+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=labbesne.herokuapp.com request_id=ae9d6f11-84cc-49b4-aa93-8445e5373a93 fwd="185.97.92.126" dyno=web.1 connect=0ms service=4ms status=304 bytes=48 protocol=https

undefined method `spree_user_omniauth_authorize_url'

Hi,

I'm building an online shop with solidus and I've integrated it with solidus-social.
It worked properly for 1 month or so, but for the last 2-3 weeks it doesn't. The status in GIT shows failed, as well.

This is the error I'm getting when I try to go into Account page:

Showing /usr/local/rvm/gems/ruby-2.2.3/gems/solidus_social-1.0.0/app/views/spree/shared/_social.html.erb where line #8 raised:

undefined method `spree_user_omniauth_authorize_url' for #ActionDispatch::Routing::RoutesProxy:0x0000000b9599c0
Extracted source (around line #37):

      send(method, *args)
    else
      super
    end
  end
end

Thanks,
Alex

View partial _configuration_menu overrides solidus file

The view partial file app/views/spree/admin/shared/_configuration_menu.html.erb overrides the original solidus partial files, which causes other plugins depending on the admin_configurations_sidebar_menu hook to fail.

In short, you won't see other plugins tabs/enhanchements if you use solidus_social.

Error uninitialized constant OmniauthCallbacksController

I have been receiving this error since I installed solidus social but never been able to reproduce it.
My guess is that it's a very specific combination that triggers this, but nevertheless it keeps happening.

The error is:

NameError: uninitialized constant Spree::Admin::OmniauthCallbacksController
vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:271:in `const_get': uninitialized constant Spree::Admin::OmniauthCallbacksController (NameError)
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:271:in `block in constantize'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:267:in `each'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:267:in `inject'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:267:in `constantize'
    from config/initializers/solidus_social.rb:46:in `block in <top (required)>'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb:486:in `fail!'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-oauth2-1.5.0/lib/omniauth/strategies/oauth2.rb:71:in `callback_phase'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-facebook-5.0.0/lib/omniauth/strategies/facebook.rb:67:in `block in callback_phase'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-facebook-5.0.0/lib/omniauth/strategies/facebook.rb:131:in `with_authorization_code!'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-facebook-5.0.0/lib/omniauth/strategies/facebook.rb:66:in `callback_phase'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb:236:in `callback_call'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb:188:in `call!'
    from vendor/bundle/ruby/2.4.0/gems/omniauth-1.8.1/lib/omniauth/strategy.rb:168:in `call'
    from vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
    from vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
    from vendor/bundle/ruby/2.4.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/etag.rb:25:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/conditional_get.rb:25:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/head.rb:12:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:232:in `context'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb:226:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/cookies.rb:613:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:97:in `run_callbacks'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
    from vendor/bundle/ruby/2.4.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:36:in `call_app'
    from vendor/bundle/ruby/2.4.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:in `block in call'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:69:in `block in tagged'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:26:in `tagged'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:69:in `tagged'
    from vendor/bundle/ruby/2.4.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/request_id.rb:25:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/method_override.rb:22:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/runtime.rb:22:in `call'
    from vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.6/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
    from vendor/bundle/ruby/2.4.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/executor.rb:12:in `call'
    from vendor/bundle/ruby/2.4.0/gems/rack-2.0.6/lib/rack/sendfile.rb:111:in `call'
    from vendor/bundle/ruby/2.4.0/gems/railties-5.1.6/lib/rails/engine.rb:522:in `call'
    from vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/configuration.rb:225:in `call'
    from vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:658:in `handle_request'
    from vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:472:in `process_client'
    from vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/server.rb:332:in `block in run'
    from vendor/bundle/ruby/2.4.0/gems/puma-3.12.0/lib/puma/thread_pool.rb:133:in `block in spawn_thread'

The request is pretty ordinary:

Referer: https://url/login
Url: /users/auth/facebook/callback?code=XXX&state=YYY

I have an unchanged version of the generated initializer. Only removed unused providers.

Any clues on what is happening and how I can fix this?

Navigation to configuration not found

Login as an admin user and navigate to Configuration > Social Authentication Methods as mentioned in the readme does not exist for me. Can someone confirm if this exists?

Error: "Please add devise :omniauthable"

Hi everyone!

Thanks for the great gem. I'm getting this little error every once in a while.

Mapping omniauth_callbacks on a resource that is not omniauthable Please adddevise :omniauthableto theSpree::Usermodel

Then, afterwards (sometimes), an entire multitude of stuff appears. One example:
undefined methodnested_taxons_path' for #ActionDispatch::Routing::RoutesProxy:0x007fb15e9e5068``
(simply on the root, out of nowhere)

Rails 5. Freshly new Solidus installation, everything by the book, nothing special. I restart the server, everything goes back to normal. I work some more, make some small changes and... This.

I don't get it.

facebook and google login not working

i am getting Could not authenticate you from Facebook because "Invalid credentials". for facebook and for google Could not authenticate you from Google oauth2 because "Invalid credentials".i have checked all the keys in the social authentication method but unable to find the reason.

Apple Assistance

I think this is more of a plee than a bug, but i don't know. I've got apple oauth setup, it gets through two factor then throws what i think is a CSRF for appleid.apple.com not being the base url. Any guidance would be appreciated.

CSRF

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "codecov":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      codecov (~> 0.1.16)

Could not find gem 'codecov (~> 0.1.16)', which is required by gem 'solidus_dev_support', in any of the sources.

Bundler could not find compatible versions for gem "rubocop":
  In Gemfile:
    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop-rspec (~> 1.36) was resolved to 1.41.0, which depends on
        rubocop (>= 0.68.1)

    solidus_dev_support was resolved to 1.5.0, which depends on
      rubocop (~> 0.76.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 2.11.0.alpha, which depends on
      solidus_core (= 2.11.0.alpha)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_auth_devise was resolved to 2.4.0, which depends on
        solidus_core (>= 2.6, < 3)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::GemNotFound with message: Could not find gem 'solidus_extension_dev_tools' in https://github.com/solidusio-contrib/solidus_extension_dev_tools.git (at master@042f10b).
The source does not contain any versions of 'solidus_extension_dev_tools'

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    Ruby (~> 2.4.10.0)

    rails (> 0.a) was resolved to 6.1.3.2, which depends on
      Ruby (>= 2.5.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 3.1.0.alpha, which depends on
      solidus_core (= 3.1.0.alpha)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_auth_devise was resolved to 2.3.0, which depends on
        solidus_core (>= 1.2.0, < 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Facebook login not working for me

Hi can you provide details on Facebook login. I dont know what im missing.

I get this error This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.

The url i used is <%= link_to "Login with FB", "/users/auth/facebook" %>

I have added facebook keys on solidus_social.rb
api_key: 342367450747827,
api_secret....

Am i Missing something. I tried with ngrok and localhost both for development on the facebook app but failed in both

::Spree::UserRegistrationsController.prepend self - not found on install

Hi, i want to add social register but I have problem with install this feature - can someone explain me, what m I doing wrong ?

shop git:(main) โœ— bundle exec rails g solidus_social:install /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in <module:UserRegistrationsControllerDecorator>: uninitialized constant Spree::UserRegistrationsController (NameError)
::Spree::UserRegistrationsController.prepend self
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean? UserSessionsController UserConfirmationsController from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:5:in <module:Spree> from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:4:in <module:SolidusSocial> from /Users/maykazw/.rvm/gems/ruby-3.2.2/gems/solidus_social-1.6.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:3:in <main>

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    Ruby (~> 2.4.10.0)

    solidus_dev_support was resolved to 1.5.0, which depends on
      capybara (~> 3.29) was resolved to 3.32.2, which depends on
        nokogiri (~> 1.8) was resolved to 1.11.3, which depends on
          Ruby (>= 2.5.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 3.1.0.alpha, which depends on
      solidus_core (= 3.1.0.alpha)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, <= 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::GemNotFound with message: Could not find gem 'solidus_extension_dev_tools' in https://github.com/solidusio-contrib/solidus_extension_dev_tools.git (at master@7c47ece).
The source does not contain any versions of 'solidus_extension_dev_tools'

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Names Pulled From Facebook

Hey All,

With a show of thumbs up reactions in this issue, who would love to see the app assign the user's firstname and lastname if they were settable on the Store's user object? Just spit balling a small feature.

Error in 'omniauth_callbacks_controlle'

I get this error with last master version with solidus 2.2:

/app/vendor/bundle/ruby/2.3.0/bundler/gems/solidus_social-37cd5335f76b/app/controllers/spree/omniauth_callbacks_controller.rb:15:in <class:OmniauthCallbacksController>': undefined method keys' for nil:NilClass (NoMethodError)
from /app/vendor/bundle/ruby/2.3.0/bundler/gems/solidus_social-37cd5335f76b/app/controllers/spree/omniauth_callbacks_controller.rb:1:in `<top (required)>'

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    Ruby (~> 2.4.10.0)

    rails (> 0.a) was resolved to 6.1.3.2, which depends on
      Ruby (>= 2.5.0)

Bundler could not find compatible versions for gem "solidus_core":
  In Gemfile:
    solidus was resolved to 3.1.0.alpha, which depends on
      solidus_core (= 3.1.0.alpha)

    solidus_social was resolved to 0.0.1, which depends on
      solidus_core (>= 2.0.0, <= 3)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Solidus v4 compatibility?

Is this gem compatible with Solidus 4? According to the gemspec, it should be: spec.add_dependency 'solidus_core', '>= 2.0.0', '< 5'. But when trying to install either of the two most recent versions (gem 'solidus_social', '~> 1.5' or gem 'solidus_social', '~> 1.4'), there is an un-resolvable gem conflict:

Could not find compatible versions

Because solidus >= 4.0.1, < 4.1.0 depends on solidus_core = 4.0.1
  and solidus >= 4.0.0, < 4.0.1 depends on solidus_core = 4.0.0,
  solidus >= 4.0.0, < 4.1.0 requires solidus_core = 4.0.0 OR = 4.0.1.
And because solidus >= 4.1.0 depends on solidus_core = 4.1.0
  and solidus_social >= 1.4.0 depends on solidus_core >= 2.0.0, < 4,
  solidus_social >= 1.4.0 is incompatible with solidus >= 4.0.0.
So, because Gemfile depends on solidus ~> 4.0
  and Gemfile depends on solidus_social ~> 1.5,
  version solving has failed.

I was able to install the most current GitHub version using gem 'solidus_social', github: 'solidusio-contrib/solidus_social', but then running rails g solidus_social:install throws an error:

/home/arman/.rvm/gems/ruby-3.1.3/bundler/gems/solidus_social-eb542f305243/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in `<module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController (NameError)

      ::Spree::UserRegistrationsController.prepend self
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean?  UserSessionsController
               UserConfirmationsController

Remove omniauth-facebook

omniauth-facebook extension downgrades omniauth lesser than V2. Rather than lock omniauth version, we think it would be better to remove omniauth-facebook gem and the commit that lock the omniauth version so that the user can add it back manually if required.

ref #102 (comment)
9bc5e05

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.