Closed mrabro closed 2 years ago
I now updated the omniauth gems to their latest versions... now the current versions are:
* oauth2 (1.4.7)
* omniauth (2.0.4)
* omniauth-facebook (9.0.0)
* omniauth-oauth2 (1.7.2)
and now it's not showing in errors in the console log, but on the web page, saying Not found. Authentication passthru.
and check in the code it's entering in this block
def passthru
Rails.logger.info "PASSTHRO METHOD"
super
end
I don't know what's happening here... what it does mean!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello, I have been trying to integrate social login to my app, But stucked in nowhere....
my gem file:
devise.rb
config.omniauth :facebook, "APP_ID", "APP_SECRET", token_params: { parse: :json }
user model:
devise :omniauthable, omniauth_providers: %i[facebook]
and then adding link to view
link_to "Register with Facebook", user_facebook_omniauth_authorize_path, method: :post
but whenever clicking on the link, taking me to facebook, asking to login via FB, and when fb user login is done, it takes back me to failure callback stating below msgs in the log..
Though I have verified my APPID n SECRET are fine, and correct... still giving me invalid credentials error... My FB APP is in development mode, so it's saying the localhost will automatically be redirected, so it's not necessary to add the localhost urls in the whitelist url callbacks ... and app domain is set to localhost too. Still I don't understand what's wrong and where I have done wrong...
Please do suggest what should be done to get a proper resolution for this... I have been looking for this for a week, have tried many solutions posted in github issues or stackoverflow, have downgraded/upgraded gems for omniauth n fb... but still got no luck..