Force TLS v1.0 for Wells Fargo module. Fixes #1647
This commit is contained in:
parent
2a4d6ac41d
commit
c5095312c8
1 changed files with 10 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
from weboob.capabilities.bank import AccountNotFound
|
from weboob.capabilities.bank import AccountNotFound
|
||||||
from weboob.browser import LoginBrowser, URL, need_login
|
from weboob.browser import LoginBrowser, URL, need_login
|
||||||
from weboob.exceptions import BrowserIncorrectPassword
|
from weboob.exceptions import BrowserIncorrectPassword
|
||||||
|
import ssl
|
||||||
|
|
||||||
from .pages import LoginPage, LoginProceedPage, LoginRedirectPage, \
|
from .pages import LoginPage, LoginProceedPage, LoginRedirectPage, \
|
||||||
SummaryPage, ActivityCashPage, ActivityCardPage, \
|
SummaryPage, ActivityCashPage, ActivityCardPage, \
|
||||||
|
|
@ -72,6 +73,15 @@ class WellsFargo(LoginBrowser):
|
||||||
else:
|
else:
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
def prepare_request(self, req):
|
||||||
|
"""
|
||||||
|
Wells Fargo uses TLS v1.0. See issue #1647 for details.
|
||||||
|
"""
|
||||||
|
preq = super(WellsFargo, self).prepare_request(req)
|
||||||
|
conn = self.session.adapters['https://'].get_connection(preq.url)
|
||||||
|
conn.ssl_version = ssl.PROTOCOL_TLSv1
|
||||||
|
return preq
|
||||||
|
|
||||||
def get_account(self, id_):
|
def get_account(self, id_):
|
||||||
self.to_activity()
|
self.to_activity()
|
||||||
if id_ not in self.page.accounts_ids():
|
if id_ not in self.page.accounts_ids():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue