Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid redirect_uri issue #3

Open
folivi opened this issue Mar 15, 2014 · 0 comments
Open

Invalid redirect_uri issue #3

folivi opened this issue Mar 15, 2014 · 0 comments

Comments

@folivi
Copy link

folivi commented Mar 15, 2014

hi,
I'm having an invalid redirect_uri issue when trying to authenticate with facebook on my production app, but no issue in development.
Any idea of what is causing it?
Find my code below

class SessionsController < Devise::OmniauthCallbacksController 
  def facebook
    #raise env.inspect #to_yaml
    user = User.from_oauth(env['omniauth.auth'])
    session[:user_id] = user.uid    
    redirect_to profile_path
  end
end

devise initializer

 config.omniauth :facebook, 'appid', 'secret, :scope => 'email, user_events, publish_actions, user_groups'

in the routes file

devise_for :users, controllers: {omniauth_callbacks: "sessions"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant