Hi Everybody!!

I am trying to use webservice and Jason Web Token 


I have this controller: webservice.py

from gluon.tools import AuthJWT
myjwt = AuthJWT(auth, 
secret_key='my_especial_key',algorithm='HS512',user_param="email")
myjwt.verify_expiration = False
    
def login_take_token():
    return myjwt.jwt_token_manager()


@myjwt.allows_jwt()
def call():
    session.forget()
    return service()

@service.run
def myfuncion(nrodoc,sexo):
   ...
   ...
   return data


1°) cuando invoco a 
https://www.misitio.com.ar/myapp/webservice/login_take_token?email=usuario&password=12345678

I got a token

2°) How to use a token in
https://www.misitio.com.ar/myapp/webservice/call/run/myfuncion/41414141  ?

Thanks in advanced.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to