Giter Site home page Giter Site logo

devise_rpx_connectable's Introduction

Hi there ๐Ÿ‘‹

I'm the CTO of Moning.co, a web platform offering you all you need to have a global view of your wealth & make better investment decisions.

devise_rpx_connectable's People

Contributors

ahmadsoliman avatar dohmoose avatar rubenfonseca avatar tardate 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

devise_rpx_connectable's Issues

twitter not save email

Ok, i tried with twitter sign but the email is saved blank... i need some help please

ActionController::InvalidAuthenticityToken in Devise/sessionsController#create

Hi, I followed the instructions but I get this. Devise is working

ActionController::InvalidAuthenticityToken

Rails.root: /home/grigio/Documenti/base-app with rpx
Application Trace | Framework Trace | Full Trace

/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/request_forgery_protection.rb:125:in verify_authenticity_token' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:439:in_run__1010667671__process_action__1623385099__callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in_run_process_action_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:inrun_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/callbacks.rb:17:in process_action' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rescue.rb:8:inprocess_action'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/base.rb:123:in process' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/rendering.rb:39:inprocess'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:84:in dispatch' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:124
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:incall'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:148:in call' rack-mount (0.6.3) lib/rack/mount/code_generation.rb:89:inrecognize'
rack-mount (0.6.3) lib/rack/mount/code_generation.rb:73:in optimized_each' rack-mount (0.6.3) lib/rack/mount/code_generation.rb:88:inrecognize'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:139:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:458:incall'
warden (0.10.3) lib/warden/manager.rb:35:in call' warden (0.10.3) lib/warden/manager.rb:34:incatch'
warden (0.10.3) lib/warden/manager.rb:34:in call' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:31:incall'
/home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/query_cache.rb:35:in cache' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:11:incache'
/home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:30:in call' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/connection_pool.rb:365:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/head.rb:14:in call' rack (1.1.0) lib/rack/methodoverride.rb:24:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/params_parser.rb:19:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/flash.rb:167:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_store.rb:107:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/cookies.rb:202:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:46:in call' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:410:in_run_call_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:inrun_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:44:in call' rack (1.1.0) lib/rack/sendfile.rb:105:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/remote_ip.rb:48:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/show_exceptions.rb:48:incall'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/rack/logger.rb:13:in call' rack (1.1.0) lib/rack/runtime.rb:17:incall'
rack (1.1.0) lib/rack/lock.rb:11:in call' rack (1.1.0) lib/rack/lock.rb:11:insynchronize'
rack (1.1.0) lib/rack/lock.rb:11:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/static.rb:30:incall'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:132:in call' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:insend'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in method_missing' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/rack/log_tailer.rb:15:incall'
rack (1.1.0) lib/rack/content_length.rb:13:in call' rack (1.1.0) lib/rack/handler/webrick.rb:48:inservice'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun'
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart'
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart'
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart'
rack (1.1.0) lib/rack/handler/webrick.rb:14:in run' rack (1.1.0) lib/rack/server.rb:155:instart'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/commands/server.rb:62:in start' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/commands.rb:42 script/rails:9:inrequire'
script/rails:9

/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/request_forgery_protection.rb:125:in verify_authenticity_token' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:439:in_run__1010667671__process_action__1623385099__callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:404:in_run_process_action_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:inrun_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/callbacks.rb:17:in process_action' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rescue.rb:8:inprocess_action'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/base.rb:123:in process' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/abstract_controller/rendering.rb:39:inprocess'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:84:in dispatch' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_controller/metal.rb:124
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:29:incall'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:148:in call' rack-mount (0.6.3) lib/rack/mount/code_generation.rb:89:inrecognize'
rack-mount (0.6.3) lib/rack/mount/code_generation.rb:73:in optimized_each' rack-mount (0.6.3) lib/rack/mount/code_generation.rb:88:inrecognize'
rack-mount (0.6.3) lib/rack/mount/route_set.rb:139:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/routing/route_set.rb:458:incall'
warden (0.10.3) lib/warden/manager.rb:35:in call' warden (0.10.3) lib/warden/manager.rb:34:incatch'
warden (0.10.3) lib/warden/manager.rb:34:in call' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:31:incall'
/home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/query_cache.rb:35:in cache' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:11:incache'
/home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/query_cache.rb:30:in call' /home/grigio/.bundle/ruby/1.8/gems/activerecord-3.0.0.beta3/lib/active_record/connection_adapters/abstract/connection_pool.rb:365:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/head.rb:14:in call' rack (1.1.0) lib/rack/methodoverride.rb:24:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/params_parser.rb:19:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/flash.rb:167:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/session/cookie_store.rb:107:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/cookies.rb:202:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:46:in call' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:410:in_run_call_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:in send' /home/grigio/.bundle/ruby/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:88:inrun_callbacks'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/callbacks.rb:44:in call' rack (1.1.0) lib/rack/sendfile.rb:105:incall'
/home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/remote_ip.rb:48:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/show_exceptions.rb:48:incall'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/rack/logger.rb:13:in call' rack (1.1.0) lib/rack/runtime.rb:17:incall'
rack (1.1.0) lib/rack/lock.rb:11:in call' rack (1.1.0) lib/rack/lock.rb:11:insynchronize'
rack (1.1.0) lib/rack/lock.rb:11:in call' /home/grigio/.bundle/ruby/1.8/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/static.rb:30:incall'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:132:in call' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:insend'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/application.rb:81:in method_missing' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/rack/log_tailer.rb:15:incall'
rack (1.1.0) lib/rack/content_length.rb:13:in call' rack (1.1.0) lib/rack/handler/webrick.rb:48:inservice'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun'
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart'
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart'
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart'
rack (1.1.0) lib/rack/handler/webrick.rb:14:in run' rack (1.1.0) lib/rack/server.rb:155:instart'
/home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/commands/server.rb:62:in start' /home/grigio/.bundle/ruby/1.8/gems/railties-3.0.0.beta3/lib/rails/commands.rb:42 script/rails:9:inrequire'
script/rails:9

Request

Parameters:

{"token"=>"8313f091c9302dc351d7f4d37d281a2623c0945c",
"authenticity_token"=>"hZ2hsI qu0t1NpfQBZeeqDEDeQIvIQzxCvlRSz8Mwmk="}

Not able to login through facebook and google using same email

Thanks for the gem. It works nicely except in one scenario.

In my app email address is key so I have setup such that email must be provided.

I first login through facebook with email [email protected] . So now I have a record in the database for john. I use before_rpx_auto_create hook.

Now if I login through google.com using the same email address [email protected] then even though the rpx box says I am loggin through google.com the signed_in? method of devise returns false.

Any thoughts on this issue.

Thanks

Before hooks not allowing registration or login

I'm trying to save the givenName and familyName for a user authenticating through google.

In my user model, for both the before_rpx_auto_create and before_rpx_success, i've tried the following combinations:

self.first_name = rpx_user.name.givenName

self.first_name = rpx_user.name.given_name

self.first_name = rpx_user[:name][:givenName]

But neither one of them saves the givenName field and doesn't allow devise to proceed with registration or login...

Any help will be appreciated. Thank you.

forgot password

At the moment users who are connected via rpx are able to click on the forgot password link provided by devise. This will send an e-mail and will reset the users password (which is null at that time). The users is now able to log on locally and via rpx, I think this is a little confusing for the user.

Is it possible the override the create method (responsible for sending the forgot password e-mail) in the devise passwords_controller.rb?

Maybe you can check if the e-mail entered is a rpx_connected user and then display a message e.g. "This function is not available if you are logged in via rpx, go to #{user.providername} to update your password"

Please let me know if I can help.

Thanks

Regards

Chris

weird testing issue

I'm using devise_rpx_connectable on a project, and I'm having a weird problem in testing. I'm using devise 1.1.3, devise_rpx_connectable 0.2.2.

Without :rpx_connectable on the model's devise strategies, everything works fine (i.e. using :database_authenticatable). once I integrate devise_rpx_connectable, however, the logged in user from rpx is not being remembered between redirects (i.e. user_signed_in? == false && current_user == nil)

I'm simulating the janrain engage service by skipping ahead to the callback and POSTing the token to my app, then mocking out the RPXNow.user_data call to return the appropriate identifier for the user. Stepping through it in the debugger it all works fine, until it gets to the redirect. Once I make it back into my controller through the redirect, warden isn't seeing the session user anymore.

I should note that it works fine in the development envronment. After it comes back from the engage server, it authenticates and the user_signed_in? and current_user helpers work as expected.

Am I missing something here? If there's a more appropriate forum please direct me to it.

Violate validations

This seems to create the user regardless of whether the user violates any validations. Is this by design?

I am using Mongoid, so that's a possible cause of the issue.

It might be nice to have a callback you could use for successful or unsuccessful creation of the user, if there is a good access point for that.

Sign in with email used as rpx log in raises error

Scenario:

  • I login with email1 on facebook via rpx
  • I logout
  • I signin with email1 via a normal signin form (using devise)
    => salt is empty => BCrypt::Errors::InvalidSalt in Devise/sessionsController#create

The edit has a password field mandatory

Would it be possible to create a new edit view where it does not show the password fields and does not check for a password to validate the changes?

I am doing that in my app, but this is just a suggestion for this module

more info than rpx_invalid?

I'm trying to print out flash messages on errors that occur during authentication using devise_rpx_connectable. When I try to sign in using, for example, a google account that happens to have the same email as an openid user that already signed up, I get an error in the logs about an identical email address already in the system. However, the message I get is "rpx_invalid".

I'm using pretty vanilla error message flashing...

  <% flash.each do |name, msg| %>
    <%= content_tag :div, msg, :id => "flash_#{name}" %>
  <% end %>

Is there a way to get more specific errors?

thanks!

Storing additional user data in devise user model

I've setup a user model with devise and then added this gem to my project. The instructions said that I needed to add "rpx_identifier" to the users table. Although do I need to add any additional columns to my table to store additional user data from RPX?

For example if I'm trying to get displayName would I need to add a "display_name" column to my user model? Any help would be greatly appreciated, thanks for the awesome plugin!

Not loading at first?

When I first start the server and login with a social account I get "Invalid email/password", but on the second time it will get passed to the rpx connectible. Is anyone else having this problem? Rails 3.0.0

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.