I have a user I have fetched from the db(), I want to return this user's
JWT token, but to do so I must log them in first.
Can I log in a user with auth.password property?
valid_user = auth.login_bare(user.username, user.password)
if valid_user:
payload = AuthJWT.serialize_auth_session(curren
Hey, I am trying to manually upload a file from a request without using
SQLFORMS, as this is is done through a REST client. This is is what I have
so far:
id = db.image.insert(file =
db.image.file.store(request.vars.profile_pic.file,request.vars.profile_pic.filename))
This works, but fails to
I want to add authorization to the following url, is this the right path
for a web2py controller url ?
- url: /applications/test/default/do_something/
script: none
login: admin
auth_fail_action: unauthorized
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
I am running version 2.13.4 on GAE which runs on python 2.7.5. The problem
arises when using the @auth.allows_jwt() decorator. The error I get is
AttributeError:
'module' object has no attribute 'compare_digest'.
Which is being called in :
def verify_signature(self, body, signature, secre
4 matches
Mail list logo