You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite that, I always get a 401 error when I launch the query. Here are my logs:
Started GET "/fb_users/**?user_email=***********&user_token=***********" for 127.0.0.1 at 2018-02-02 17:29:38 +0100
Processing by FbUsersController#show as HTML
Parameters: {"user_email"=>"***********", "user_token"=>"***********", "id"=>"29"}
Completed 401 Unauthorized in 17ms (ActiveRecord: 0.0ms)
and
Started GET "/fb_users/29?fb_user_email=***********&fb_user_token=***********" for 127.0.0.1 at 2018-02-02 17:13:49 +0100
Processing by FbUsersController#show as HTML
Parameters: {"fb_user_email"=>"***********", "fb_user_token"=>"***********", "id"=>"29"}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
Would know how to help me?
Thanks a lot
Guillaume
The text was updated successfully, but these errors were encountered:
Guillaumejfrt
changed the title
Unable to authenticate with HTTP Get query for multiple models added to Devise
Help: Unable to authenticate with HTTP Get query for multiple models added to Devise
Feb 2, 2018
Hi @gonzalo-bulnes,
I was used to use
simple_token_authentication
with one User model. It worked perfectly. I could authenticate the user through HTTP get query with:Then, I added Devise to my FbUser model that I also want to authenticate through HTTP Get query.
Thus, I run the migration:
added the helpers in the model and in the controller:
So, I have those two queries:
and
Despite that, I always get a 401 error when I launch the query. Here are my logs:
and
Would know how to help me?
Thanks a lot
Guillaume
The text was updated successfully, but these errors were encountered: