klen / django-netauth

django auth backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSLHandshakeError with yandex user, that have passport, but not have ya.ru page

LennyLip opened this issue · comments

File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "src\apps\netauth\views.py" in complete
  55.     response = backend.validate(request, data)
File "src\apps\netauth\backends\yandex.py" in validate
  22.             content = self.load_request(request)
File "src\apps\netauth\backends\__init__.py" in load_request
  126.         response, content = self.client.request(request.to_url())
File "C:\Python26\lib\site-packages\httplib2\__init__.py" in request
  1436.                     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "C:\Python26\lib\site-packages\httplib2\__init__.py" in _request
  1188.         (response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "C:\Python26\lib\site-packages\httplib2\__init__.py" in _conn_request
  1123.                   conn.connect()
File "C:\Python26\lib\site-packages\httplib2\__init__.py" in connect
  911.                     raise SSLHandshakeError(e)

Exception Type: SSLHandshakeError at /auth/complete/yandex/
Exception Value: [Errno 1] _ssl.c:490: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

https://api-yaru.yandex.ru/me/
return "No ya.ru account"

I think, there should be more complex processing error.

Sorry, netauth not nore supported now. Im recomended use django-socialauth.