Hi,
I followed the instruction:
3) Use it!
Now API users can obtain a token with
http://.../app/default/user/jwt?username=...&password=....
(returns json object with a token attribute)
API users can refresh an existing token with
http://.../app/default/user/jwt?token=...
Everytime I try to refresh the retrieved token (via
http://.../app/default/user/jwt?token=), I get the error "token is
expired". Besides that, the issued token can't seemed to be used to
authenticate at all (json response is to redirect).
I changed the expiration parameter to a large number in models and later
removed it, could it be that? I also had switched authenticating with
username/email. I thought I had JWT working earlier today.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.