python 2.7 - Web2py 3rd party authentication -
i have made webapp in python using web2py has 3rd party authentication using janrain recommended.
on local server worked absolutely fine, when deployed on pythonanywhere, authentication giving me following error
"class 'urllib2.urlerror' urlopen error tunnel connection failed: 403 forbidden"
stack
===========
file "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) file "/usr/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data) file "/usr/lib/python2.7/urllib2.py", line 422, in _open '_open', req) file "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) file "/usr/lib/python2.7/urllib2.py", line 1222, in https_open return self.do_open(httplib.httpsconnection, req) file "/usr/lib/python2.7/urllib2.py", line 1184, in do_open raise urlerror(err) urlerror: <urlopen error tunnel connection failed: 403 forbidden>
==========================
for third party authentication had used yahoomail id.
this has been fixed, in case else comes across issue or similar issue:
the problem free users on pythonanywhere have restricted internet, goes via proxy , allows whitelist of sites.
the sites .janrain.com
, .rpxnow.com
weren't on whitelist @ time, have added them, , janrain/yahoo mail login works.
so, else happens going via proxy , trying use service, sites need add. (may of interest paranoid people run noscript, if find federated auth system failing, may need unblock rpxnow).
happy coding everyone!
Comments
Post a Comment