-
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
Sign in, Sign out not working #982
Comments
Are you getting the value for |
headers also missing, recently upgraded to devise rails: 4.2.10 |
@johnnagro @Danilo-Araujo-Silva I did find some devise v4.3 issues when testing the other day. Can you try running against master and see if that resolves the issue? We're about to cut a release and I'd like to make sure it's working with the latest devise |
@lynndylanhurley we will try that right now |
@lynndylanhurley unfortunately, pulling from master did not fix this for us. it appears that we are continuing to dig into this. |
|
@lynndylanhurley our issue seems to relate to our use of single table inheritance and the class check, as outlined in the PR we just submitted. In other words, we have a @Danilo-Araujo-Silva are you also using single table inheritance on your main resource object? |
Seems that the @Danilo-Araujo-Silva issue is different, please reply what @lynndylanhurley asked the first time, otherwise we're closing this in 7 days. |
Hi guys, I think, at least for my use case, we can close this issue. I don't know if it solved at all. But I found a way to use the devise itself but I not working with rails right now too, so probably I will can not test it soon. |
rails: 5.1.4
ruby: 2.4.0
devise: 4.3.0
devise_auth_token: 0.1.42
I'm using Postman to do the tests.
Following the instructions and I can put the things to work. But unfortunately, not so properly.
When the sign in is done, I can receive the user informations, but no header with the
client
and theaccess-token
was returned to me.So I then tried to use the sign out. I inspected the token and the client that I should use and set it in the postman test. But this validation fails:
::BCrypt::Password.new(token_hash) == token
It will not fail if I change to
::BCrypt::Password.new(token_hash).to_s == token
.How can we solve this?
The text was updated successfully, but these errors were encountered: