Displaying 1 result from an estimated 1 matches for "apply_omniauth".
2011 Apr 20
1
Omniauth facebook authentication failure
...#if user has signed in with that provider before, sign user in and
show the requested page
      if authenticate
    sign_in_and_redirect(:user, authenticate.user)
          flash[:notice] = "Authentication successful!!"
      #create new user
      else
    user = User.new
    user.apply_omniauth(omniauth)
    case omniauth[''provider'']
      when ''facebook''
        if user.save
          user.profile = Profile.new
    user.profile.picture_url =
"https://graph.facebook.com/"+omniauth[''uid'']+"/picture"
#     user.prof...