-
-
Notifications
You must be signed in to change notification settings - Fork 970
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
omniauth not working, passthru #1053
Comments
Follow up: |
I think this is likely due to turbo replacing rails-ujs. The # old version (rails-ujs)
link_to "Sign in with Facebook", [url], method: :post
# => "<a href='/[url]' data-method='post'>Sign in with Facebook</a>"
# new version (turbo)
link_to "Sign in with Facebook", [url], data: { turbo_method: :post }
# => "<a href='/[url]' data-turbo-method='post'>Sign in with Facebook</a>" |
This was removed in a previous commit (jquery-ujs). This is what makes the unobtrusive javascript buttons on the login page and event edit page (organiser token) work. The more recent way to achieve the same result is with turbo: omniauth/omniauth#1053 (comment)
This was removed in a previous commit (jquery-ujs). This is what makes the unobtrusive javascript buttons on the login page and event edit page (organiser token) work. The more recent way to achieve the same result is with turbo: omniauth/omniauth#1053 (comment)
Please complete all sections.
Configuration
omniauth-facebook
3.0.0
rails 7.0.0
ubuntu
Expected Behavior
When I click on the link it should take me to Facebook.
Actual Behavior
I get "Not found. Authentication passthru".
Steps to Reproduce
https://github.com/elbarto132/omniauthprob
Clone it, start it, click on "Sign in with Facebook" link.
I followed the instructions here: https://github.com/heartcombo/devise/wiki/OmniAuth:-Overview
The text was updated successfully, but these errors were encountered: