Skip to content

re-enable cookie sessions for API

forcing token sessions for the API makes it so that bitmask 0.6 cannot download the vpn client certificate:

we should enable cookie sessions for the api again until bitmask 0.6 is two versions behind.

2014-11-27 19:06:16,487 - DEBUG    - L#202  : leap.bitmask.config.providerconfig:get_ca_cert_path() - Going to verify SSL against /home/elijah/Downloads/Bitmask-linux64-0.6.1-4/config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem
2014-11-27 19:06:16,798 - DEBUG    - L#53   : leap:write() - 2014-11-27 11:06:16-0800 [-] Unhandled Error
2014-11-27 19:06:16,798 - DEBUG    - L#53   : leap:write() -  Traceback (most recent call last):
2014-11-27 19:06:16,799 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/threading.py", line 525, in __bootstrap
2014-11-27 19:06:16,799 - DEBUG    - L#53   : leap:write() -      self.__bootstrap_inner()
2014-11-27 19:06:16,799 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/threading.py", line 552, in __bootstrap_inner
2014-11-27 19:06:16,800 - ERROR    - L#369  : leap.bitmask.gui.eip_status:set_eip_status() - There was a problem with the provider
2014-11-27 19:06:16,800 - DEBUG    - L#53   : leap:write() -      self.run()
2014-11-27 19:06:16,801 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/threading.py", line 505, in run
2014-11-27 19:06:16,801 - DEBUG    - L#53   : leap:write() -      self.__target(*self.__args, **self.__kwargs)
2014-11-27 19:06:16,801 - ERROR    - L#1756 : leap.bitmask.gui.mainwindow:_finish_eip_bootstrap() - 401 Client Error: Authorization Required
2014-11-27 19:06:16,802 - DEBUG    - L#53   : leap:write() -  ---  ---
2014-11-27 19:06:16,802 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/twisted/python/threadpool.py", line 191, in _worker
2014-11-27 19:06:16,803 - DEBUG    - L#53   : leap:write() -      result = context.call(ctx, function, *args, **kwargs)
2014-11-27 19:06:16,803 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/twisted/python/context.py", line 118, in callWithContext
2014-11-27 19:06:16,804 - DEBUG    - L#53   : leap:write() -      return self.currentContext().callWithContext(ctx, func, *args, **kw)
2014-11-27 19:06:16,805 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/twisted/python/context.py", line 81, in callWithContext
2014-11-27 19:06:16,806 - DEBUG    - L#53   : leap:write() -      return func(*args,**kw)
2014-11-27 19:06:16,806 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./apps/leap/bitmask/services/eip/eipbootstrapper.py", line 101, in _download_client_certificates
2014-11-27 19:06:16,806 - DEBUG    - L#53   : leap:write() -      self._session)
2014-11-27 19:06:16,807 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./apps/leap/bitmask/crypto/certs.py", line 62, in download_client_cert
2014-11-27 19:06:16,807 - DEBUG    - L#53   : leap:write() -      res.raise_for_status()
2014-11-27 19:06:16,807 - DEBUG    - L#53   : leap:write() -    File "/home/elijah/Downloads/Bitmask-linux64-0.6.1-4/./lib/requests/models.py", line 722, in raise_for_status
2014-11-27 19:06:16,807 - DEBUG    - L#53   : leap:write() -      raise HTTPError(http_error_msg, response=self)
2014-11-27 19:06:16,807 - DEBUG    - L#53   : leap:write() -  requests.exceptions.HTTPError: 401 Client Error: Authorization Required

(from redmine: created on 2014-11-27, closed on 2014-11-30)