scambra/devise_invitable — Issue #177: Correcting invitable synchronization with omniauthable?
Author: daidekman
Created: 2012-02-25 11:31:54+00:00
State: open

Thanks for creating such a great tool with invitable.

I have been using Devise with omniauth (primarily for Facebook login) and now I am seeking to implement invitations, yet not lose the omniauth login functionality. My goal is to allow a user to accept an invitation, then have the option to register/login using omniauth or the password confirmation fields that already exist.

I know to edit "/views/devise/invitations/edit.html.erb" so that there is a link to the omniauth_authorize_path. However, how would this authorization retain the checks on the invitation token? With omniauth we would still need to ensure a valid invitation_token and record the invited_by.

Many thanks for your help!
-Dave