Hello,
I have a simple function, like this:
@service.xmlrpc
def list_car():
cars=db(db.car.id_person==auth.user.id).select(db.car.id,
db.car.color)
return cars.response
Well, I'm accessing the service so:
https://username:password@my_server/my_app/service/call/xmlrpc
This works fine
I want to do that
@auth.requires_login()
@service.amfrpc3('myservice')
def item_list():
return [1,2,3]
but of course it will not work as it can't redirect to login form,
how to use then authentication and authorization here?
2 matches
Mail list logo