-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
with version 1.2.0 @data is not passed to the omniauth_external_window.html.erb #1591
Comments
I tried with version
Instead of seeing at least the text comment in the template, it literally always renders an empty view, this is totally weird, in this way I am prevented to have the @DaTa passed into the view and then do the redirect to my FE app, by the way no sort of js is triggered in this page if I include any inside of a |
Ok so, to answer myself, and hoping this would save some time to other people, after 2 days spent investigating this issue, I have found out that somewhere along the way during the subsequent versions bumps from
makes sense, since I am using a rails api only app and without those includes any rails api only app will not render, since |
Hi, first of all, let me say that I have been using devise token auth since 2017 and I have integrated various types of authentications (with regular username and pwd) and other custom omniauth strategies with success. I have been using this library to authenticate with various web client apps (ember, react) flawlessly. Now after all these years, I decided to update the version of devise token auth from
1.1.0
to1.2.0
. I am onrails 6.1.7.1
.I have been running the current specs for my code base and out of 509 examples, it seems that I have only 1 spec failing; by having a look at what is going on, it seems that for some unknown reason, the spec is failing since the
response.body
for the callback response is an empty string and the@data
coming from therender_data(message, data)
method in theomniauth_callbacks_controller.rb
is not passed to theomniauth_external_window.html.erb
view (as instead it was happening with version1.1.0
). This is totally weird, since if I directly debug from insidedevise_token_auth
and I inspect what is going on in therender_data(message, data)
method my@data
is there, here is an example of calling@data.to_json
from the methodbut to my great surprise, it seems that when I am redirected to
auth/provider/callback
page, this page is always empty, no js is executed (I tried to put aconsole.log
in there to see if I could debug something from the view), I even tried to manually place some plain text in the body to understand if I could at least have the@data
included in this page by using simple ERB but no matter what, this is always rendering an empty page: the@data
is not passed to the view and the sign in is successfull, since if I inspect the current user, this user is signed in and authenticated to the rails app (the sign in count is updated in my db table) but the@data
is not passed anymore in the view with version1.2.0
as it was happening with version1.1.0
and no js is executed, I am totally stuck on this and I do not understand if this has anything to do with the new changes in the version1.2.0
or if this has something to do with the version of rails, has anyone by chance experienced this same type of issue with version1.2.0
of devise token auth? Any kind of support on this would be highly appreciated, thanks in advance!The text was updated successfully, but these errors were encountered: