mkdynamic/omniauth-facebook — Issue #35: Question about callback url
Author: fourcolors
Created: 2012-03-10 06:54:45+00:00
State: open

Hi I'm sorry if this isn't the right place but I didn't see a mail list.

I'm allowing my users to log in with with facebook and am using this strategy. I'm having my users fill out a form with their email and password however before creating an account (yes I know, you might say whats the point of using this then, well it's so my users doesn't have to enter all their info in and I can share content with their friend now).

Because my sign up process works like this, I need two call back paths. One path for a use that just wants to sign in, and another for a user creating an account from an invite.

##### How can I use two of these call backs and point them to my respective controllers?

ie:
match '/auth/:provider/register/callback' => "users#new"
match '/auth/:provider/callback' => "sessions#create"

Thanks and sorry if this isn't the right place to ask.