I am not sure what that comment means. How would you like to authenticate 
using JSONRPC? basic_auth? You should be able to do that by enabling 
basic_auth. 

The problem is that JSONRPC does have the concept of state therefore you 
need to send credentials (basic_auth) in every request. Perhaps that is 
what the comment mean.

Massimo 

On Tuesday, 31 July 2012 11:23:17 UTC-5, Alec Taylor wrote:
>
> Practically just finished my little proof-of-concept social-network 
> backend (DAL+controller) & web-frontend (web2py views).
>
> Now I plan to make the mobile app with PhoneGap <http://phonegap.com>. 
> PhoneGap allows you to create native mobile-apps for 7 different mobile 
> platforms in HTML+JS+CSS.
>
> I plan on developing this frontend first by exposing JSONRPC methods 
> server-side—by decorating controllers—then interfacing with the API on the 
> client-side using JavaScript.
>
> Reading "web2py Application Development Cookbook", and on page 217 
> (chapter 7) it tells me that to make authentication work for RPC calls I 
> need to break regular authentication methods.
>
> Is there a way to avoid this? — Note that I'm currently logging in using 
> the normal method, but will be using Facebook auth in production.
>
> Also, if there is a way to avoid rewriting the frontend from scratch that 
> will work with PhoneGap, please tell me.
>
> Thanks for all suggestions,
>
> Alec Taylor
>

-- 



Reply via email to