[web2py] Authentication for services in iPhone not work

2011-08-08 Thread Relsi Hur
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

[web2py] authentication with services

2011-02-17 Thread elffikk
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?