pretenders/deploystream — pull request #33 by alexcouper (2013-03-16 22:34:13+00:00)
Title: Add oauth structure and github init. Add ssl test for Carles comparison.

This is *NOT* ready for review.

@txels Could you do me a favour and checkout this branch, and (after installing updated dependencies) run ssl_test.py.

Do you get the following error?

```
File "/home/alex/envs/deploystream/local/lib/python2.7/site-packages/oauth2/__init__.py", line 682, in request
connection_type=connection_type)
File "/home/alex/envs/deploystream/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1597, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/alex/envs/deploystream/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1345, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/alex/envs/deploystream/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1281, in _conn_request
conn.connect()
File "/home/alex/envs/deploystream/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1036, in connect
raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
```

I've spent a long time trying to get this to work so just want to confirm/deny whether this is a configuration issue at my end.

I'm not sure if the token times out after some time, so if so just go to /login on the browser and see if you get this certificate error.