Re: [web2py] how to include profile photo from Janrain in auth_user?

2011-06-10 Thread anil manikyam
i will i will send mail to other people using web2py


-- 
@n!l m@n!ky@m


[web2py] how to include profile photo from Janrain in auth_user?

2011-06-09 Thread Luis Goncalves
I have Janrain working as a login method (thanks to the instructions in the 
web2py manual, and sample code in default app).

I'd like to include the profile photo (that, say, facebook provides via 
janrain) as part of the user profile. 

I had my own function based on the sample code at the Janrain github, but so 
far it doesn't work.

The reason, I believe, is that the token that Janrain provides can only be 
used once. 

In my code, either I let user/login use the token, and then my function 
can't retrieve the photo, or I can use the token (with code in user() that 
detects a request.vars.token),  but then the web2py login procedure can't 
use the token, and the user can't even login.

I imagine that I could hack away at gluon/tools.py to include retrieving the 
profile photo along with the other user data during the login process, but 
I'm sure that's not the easiest or proper way to do things.

Does anyone have, or can anyone provide an example of the proper way to do 
it?

Thanks!!!

Luis.