Commit 91c31b68 authored by Maxime Pommier's avatar Maxime Pommier Committed by Romain Bignon

[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
parent 6f6defcd
......@@ -33,7 +33,7 @@ from import LinearDateGuesser
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<website>[\w.]+)/domiapi/oauth/json/ssoDomiwebEmbedded', SSODomiPage)
auth_checkuser = URL('https://pro.(?P<website>[\w.]+)/auth/checkuser', AuthCheckUser)
security_checkuser = URL('https://pro.(?P<website>[\w.]+)/securityapi/checkuser', SecurityCheckUser)
def __init__(self, website, *args, **kwargs):
super(CmsoProBrowser, self).__init__(*args, **kwargs)
......@@ -148,17 +147,6 @@ class CmsoProBrowser(LoginBrowser):
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-ARKEA-EFS': self.arkea,
'ADRIM': 'isAjax:true',
def iter_accounts(self):
......@@ -292,6 +292,3 @@ class TokenPage(CMSOPage, UpdateTokenMixin):
class AuthCheckUser(HTMLPage):
class SecurityCheckUser(JsonPage):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment