diff --git a/modules/cmso/pro/browser.py b/modules/cmso/pro/browser.py index 9d50d660395d55875685fd2aae18a73b706b8896..534ba0e22c48872c126224b650bf846af0e88319 100644 --- a/modules/cmso/pro/browser.py +++ b/modules/cmso/pro/browser.py @@ -33,7 +33,7 @@ from .pages import ( LoginPage, PasswordCreationPage, AccountsPage, HistoryPage, ChoiceLinkPage, SubscriptionPage, InvestmentPage, - InvestmentAccountPage, UselessPage, TokenPage, SSODomiPage, AuthCheckUser, SecurityCheckUser, + InvestmentAccountPage, UselessPage, TokenPage, SSODomiPage, AuthCheckUser, ) from ..par.pages import ProfilePage @@ -57,7 +57,6 @@ class CmsoProBrowser(LoginBrowser): tokens = URL('/domiweb/prive/espacesegment/selectionnerAbonnement/3-selectionnerAbonnement.act', TokenPage) ssoDomiweb = URL('https://pro.(?P[\w.]+)/domiapi/oauth/json/ssoDomiwebEmbedded', SSODomiPage) auth_checkuser = URL('https://pro.(?P[\w.]+)/auth/checkuser', AuthCheckUser) - security_checkuser = URL('https://pro.(?P[\w.]+)/securityapi/checkuser', SecurityCheckUser) def __init__(self, website, *args, **kwargs): super(CmsoProBrowser, self).__init__(*args, **kwargs) @@ -148,17 +147,6 @@ def go_on_area(self, area): self.location(area) self.location('/domiweb/accueil.jsp') self.auth_checkuser.go(website=self.website) - self.security_checkuser.go( - website=self.website, - json={'appOrigin': 'domiweb', 'espaceApplication': 'PRO'}, - headers={'Authentication': 'Bearer %s' % self.token, - 'Authorization': 'Bearer %s' % self.csrf, - 'X-Csrf-Token': self.csrf, - 'Accept': 'application/json', - 'X-REFERER-TOKEN': 'RWDPRO', - 'X-ARKEA-EFS': self.arkea, - 'ADRIM': 'isAjax:true', - }) @need_login def iter_accounts(self): diff --git a/modules/cmso/pro/pages.py b/modules/cmso/pro/pages.py index 85eb8185a2cde7a1fc1677d00b4d20b0934f8be4..145bb7f62089bfaef876a9a270f2a7d094fdfc5b 100644 --- a/modules/cmso/pro/pages.py +++ b/modules/cmso/pro/pages.py @@ -292,6 +292,3 @@ def on_load(self): class AuthCheckUser(HTMLPage): pass - -class SecurityCheckUser(JsonPage): - pass