From 91c31b680e251a21c983ea60f27fadf470e1bd39 Mon Sep 17 00:00:00 2001 From: Maxime Pommier Date: Mon, 3 Dec 2018 11:15:08 +0100 Subject: [PATCH] [cmso] Removed auth url doesn't used anymore We used to go on a specific page after login, on the pro website. This request is deprecated and caused "BrowserUnavailable" Closes: zendesk@8328 sibi@29322 --- modules/cmso/pro/browser.py | 14 +------------- modules/cmso/pro/pages.py | 3 --- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/modules/cmso/pro/browser.py b/modules/cmso/pro/browser.py index 9d50d66039..534ba0e22c 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 85eb8185a2..145bb7f620 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 -- GitLab