Hello!

I've been trying to use login via linkedin  using the 
contrib/login_methods/linkedin_account.py module.

Off the bat, I got the error   :   AttributeError: 'module' object has no 
attribute 'LinkedIn'
(this is the same problem Kuba mentioned on nov 12 2010)

the reason is that  linkedin_account.py  line 15 should be 

from linkedin import linked in

instead of 

import linkedin

With that fixed, the error goes away, but authentication fails, with 
linkedin giving the error

We were unable to find the authorization token

I think the problem may be that I am not passing linkedin the proper 
RETURN_URL.

Presumably, it should be the URL of a controller that knows how to parse out 
the  oauth_verifier key that linkedin will return
(according to the README of the python-linkedin module (version 1.5) )

What should the RETURN_URL be for a web2py application?

NOTE that in my case I am developing this in my sandbox app, not the "init" 
app that web2py defaults to.

NOTE also that by manually executing (in an interactive shell) the 
instructions in the python-linkedin module README
(with the sole exception of doing  api.accessToken(verifier='12345') instead 
of just api.accessToken('54321') )
I was able to authenticate and read profile and connections information, so 
there is just something wrong I am doing with web2py.

Can anybody help?  Is RETURN_URL the problem?

Thanks!!!

Luis.


Reply via email to