Closed chrisvidal closed 5 years ago
Hey @chrisvidal
Are you replacing the put-yout-jwt-token-here
(ops, typo) by your user auth token?
Can you provide me more informations about the steps that you are following? Something to reproduce the error, like:
Thanks.
Thanks for your answer Yes I do a simple login with email then copy/paste the token within the Get User request
Login
Get user
thanks for your help
@chrisvidal amazing details. Thank you, I'll check what is happening.
Did you manage to explore the problem on your side?
Hey, @chrisvidal
Not yet, but I'll probably do it during the weekend.
any updates on your side? Did you manage to have look?
thanks
@chrisvidal Not yet. I was unable to simulate the issue, so far. But, since I was in vacation last week, I don't had the time to dig on it. Right now, I'm setting up an new and clean enviorement to trying to reproduce the issue on an new installation.
Issue confirmed.
Update: The issue also affect the endpoint to refresh token.
@chrisvidal the issue related to the /me
endpoint is now fixed. We still having the issue with the /refresh-token
endpoint.
that's awesome! Let me refresh the plugin through OC backend and test. Thanks
Hi @chrisvidal and @rluders , do you get the bug fixed with new release 1.2.3? I still can get the issue with same steps as you. I checked the patch, it seems the changes are not be triggered between user login and call /me endpoint.
@jeffreygu It was working for me, but maybe I missed something. I'm accepting pull requests to fix this issue.
Hi @rluders , it's a apache server configuration issue, which is mentioned in https://github.com/tymondesigns/jwt-auth/wiki/Authentication. It works after I add below config items in .htaccess.
RewriteCond %{HTTP:Authorization} ^(.) RewriteRule . - [e=HTTP_AUTHORIZATION:%1]
@jeffreygu great, good to know, maybe we need to add this information to README.md. If you want to do that, I'll accept your pull request.
Hi I am doing some testing using the Postman collection. I managed to login. When I am trying to get the user with
/api/auth/me
in postman I got an exception, even if I set the header as documented (Authorization and Bearer token)