diff --git a/mandaye_vincennes/mappers/biblio_vincennes.py b/mandaye_vincennes/mappers/biblio_vincennes.py index df7d31c..f482d46 100644 --- a/mandaye_vincennes/mappers/biblio_vincennes.py +++ b/mandaye_vincennes/mappers/biblio_vincennes.py @@ -19,6 +19,7 @@ urls = { 'connection_url': '/mandaye/sso', 'associate_url': '/mandaye/associate', 'disassociate_url': '/mandaye/disassociate', + 'disassociate_next_url': '/sezhame' } replay_condition = lambda env, response: response.code==302 @@ -132,15 +133,5 @@ mapping = [ 'method': 'GET', 'response': {'auth': 'change_user',} }, - { - 'path': r'/mandaye/disassociate$', - 'method': 'GET', - 'response': { - 'auth': 'disassociate', - 'values': { - 'next_url': '/sezhame', - }, - } - }, ] diff --git a/mandaye_vincennes/mappers/duonet_vincennes.py b/mandaye_vincennes/mappers/duonet_vincennes.py index 9e56644..6fbde85 100644 --- a/mandaye_vincennes/mappers/duonet_vincennes.py +++ b/mandaye_vincennes/mappers/duonet_vincennes.py @@ -19,6 +19,7 @@ urls = { 'connection_url': '/mandaye/sso', 'associate_url': '/associate', 'disassociate_url': '/mandaye/disassociate', + 'disassociate_next_url': '/' } replay_condition = lambda env, response: response.code==302 @@ -97,16 +98,6 @@ mapping = [ 'method': 'GET', 'response': {'auth': 'slo'} }, - { - 'path': r'/mandaye/disassociate$', - 'method': 'GET', - 'response': { - 'auth': 'disassociate', - 'values': { - 'next_url': '/', - }, - } - }, { 'path': r'/Connect.aspx$', 'method': 'GET', diff --git a/mandaye_vincennes/mappers/famille_vincennes.py b/mandaye_vincennes/mappers/famille_vincennes.py index d018208..b8ce38b 100644 --- a/mandaye_vincennes/mappers/famille_vincennes.py +++ b/mandaye_vincennes/mappers/famille_vincennes.py @@ -20,6 +20,7 @@ urls = { 'associate_url': '%s/associate' % folder_target, 'connection_url': '/mandaye/sso', 'disassociate_url': '/mandaye/disassociate', + 'disassociate_next_url': '%s/deconnexion.do' % folder_target } replay_condition = lambda env, response: response.code==302 @@ -101,15 +102,5 @@ mapping = [ } } }, - { - 'path': r'/mandaye/disassociate$', - 'method': 'GET', - 'response': { - 'auth': 'disassociate', - 'values': { - 'next_url': '%s/deconnexion.do' % folder_target, - }, - } - }, ]