The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 2692aba0 authored by Nicolas VERGNAC's avatar Nicolas VERGNAC Committed by Vincent A

[caissedepargne] create 'enseigne' parameter for caissedepargne browser and its children

add enseigne parameter to replace a harcoded value in params of the
"authorize" request to retrieve a form from a specific website

that parameter has been added to all caissederpargne children for cenet
and regular browser

Closes: 34443@zendesk
parent 39fcaf86
......@@ -31,6 +31,7 @@ class CaisseEpargneBrowser(AbstractBrowser):
BASEURL = 'https://www.btp-banque.fr'
CENET_URL = 'https://www.entreprises.btp-banque.fr'
enseigne = 'btp'
login = URL(
r'https://www.btp-banque.fr/authentification/manage\?step=identification&identifiant=(?P<login>.*)',
......
......@@ -29,6 +29,7 @@ class CenetBrowser(AbstractBrowser):
PARENT = 'caissedepargne'
PARENT_ATTR = 'package.cenet.browser.CenetBrowser'
BASEURL = 'https://www.entreprises.btp-banque.fr'
enseigne = 'btp'
login = URL(
r'https://www.btp-banque.fr/authentification/manage\?step=identification&identifiant=(?P<login>.*)',
......
......@@ -140,6 +140,7 @@ class CaisseEpargneLogin(LoginBrowser, StatesMixin):
STATE_DURATION = 5
API_LOGIN = True
CENET_URL = 'https://www.cenet.caisse-epargne.fr'
enseigne = 'ce'
login = URL(
r'https://www.caisse-epargne.fr/authentification/manage\?step=identification&identifiant=(?P<login>.*)',
r'https://.*/authentification/manage\?step=identification&identifiant=.*',
......@@ -830,7 +831,7 @@ def do_new_login(self, authentification_data=''):
bpcesta = {
"csid": csid,
"typ_app": "rest",
"enseigne": "ce",
"enseigne": self.enseigne,
"typ_sp": "out-band",
"typ_act": "auth",
"snid": snid,
......
......@@ -32,6 +32,7 @@ class CaisseEpargneBrowser(AbstractBrowser):
BASEURL = 'https://www.credit-cooperatif.coop'
CENET_URL = 'https://www.espaceclient.credit-cooperatif.coop'
enseigne = 'ccoop'
login = URL(
r'https://www.credit-cooperatif.coop/authentification/manage\?step=identification&identifiant=(?P<login>.*)',
......
......@@ -31,6 +31,7 @@ class CenetBrowser(AbstractBrowser):
PARENT = 'caissedepargne'
PARENT_ATTR = 'package.cenet.browser.CenetBrowser'
BASEURL = 'https://www.espaceclient.credit-cooperatif.coop/'
enseigne = 'ccoop'
login = URL(
r'https://www.credit-cooperatif.coop/authentification/manage\?step=identification&identifiant=(?P<login>.*)',
......
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