-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try_login + google provider = Invalid openid on some machines #11
Comments
If I try python-openid\examples\consumer.py on this box, and feed it google id url = https://www.google.com/accounts/o8/id I get the following error: Error in discovery: Error fetching XRDS document: (60, 'SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed') I tried reinstalling pyopenssl just in case. Did not help. |
I started getting same error this week DiscoveryFailure: Error fetching XRDS document: (60, 'SSL certificate problem: unable to get local issuer certificate')
Please someone help Update I traced down the error to fetcher.fetch(), my fetcher for CurlFetcher which was generating this error. Uninstalling pycurl (which was not official build) solved the problem |
I was also getting a similar issue when trying to login from my live server setup but not locally and only when trying to login with google, other providers worked fine. What I needed to do to get this to work was remove some of the items in the "ask_for" parameter of my try_login function. |
This looks like they might have had some issues with their certificates, or perhaps that your local trusted CA list did not incorporate their CA. |
The example.py - oid.try_login line - gives me openid invalid when i enter a gmail id (yahoo ids do get me to the yahoo webpage). I am on a windows box, and I inserted some print statements in the try_login function -- and found that "except discover.DiscoveryFailure:" was being triggered with this particular exception: <class 'openid.yadis.discover.DiscoveryFailure'>.
Any ideas what is going wrong or how to debug this?
=================> pip freeze on this win box.
flask==0.9
flask-babel==0.8
flask-cache==0.4.0
flask-mail==0.6.1
flask-principal==0.2
flask-script==0.3.1
flask-sqlalchemy==0.15
flask-testing==0.3
flask-themes==0.1.3
flask-wtf==0.5.2
Flask-OpenID==1.0.1
python-openid==2.2.5
pyOpenSSL==0.13
The text was updated successfully, but these errors were encountered: