logout: fixing toolbar slo and disable slo on standard button

This commit is contained in:
Jérôme Schneider 2014-08-27 12:13:32 +02:00
parent cc041feb0c
commit 3e20be815c
6 changed files with 4 additions and 25 deletions

View File

@ -7,5 +7,6 @@
"auth_type": "saml2",
"saml2_idp_metadata": "http://authentic.local/idp/saml2/metadata",
"saml2_signature_public_key": "certs/saml.crt",
"saml2_signature_private_key": "certs/saml.key"
"saml2_signature_private_key": "certs/saml.key",
"saml2_sp_logout_url": "/sezhame/logout"
}

View File

@ -7,5 +7,6 @@
"auth_type": "saml2_espace_famille",
"saml2_idp_metadata": "http://authentic.local/idp/saml2/metadata",
"saml2_signature_public_key": "certs/saml.crt",
"saml2_signature_private_key": "certs/saml.key"
"saml2_signature_private_key": "certs/saml.key",
"saml2_sp_logout_url": "/vincennes-noredirect/deconnexion.do"
}

View File

@ -233,7 +233,6 @@ class Duonet:
account=current_account, **values)
document = lxml.html.fromstring(response.msg.decode('utf8'))
a = document.get_element_by_id('ctl00_lnkDisconnect')
a.rewrite_links(lambda link: '/mandaye/slo')
new_element = lxml.html.fromstring(disassociate)
a.addprevious(new_element)
response.msg = lxml.html.tostring(document, encoding='utf8')

View File

@ -148,9 +148,5 @@ mapping = [
},
}
},
{
'path': r'/sezhame/logout$',
'on_response': [{'auth': 'slo'}]
},
]

View File

@ -35,16 +35,6 @@ mapping = [
},
]
},
{
'path': r'/mandaye/logout$',
'method': 'GET',
'response': {
'filter': filters.logout,
'values': {
'index_url': '/Connect.aspx?key=%s' % duonet_key,
},
}
},
{
'path': r'/vincennes/login$',
'method': 'GET',

View File

@ -116,14 +116,6 @@ mapping = [
}
}
},
{
'path': r'%s/deconnexion.do$' % folder_target,
'on_response': [
{
'auth': 'slo',
'next_url': '/'
}],
},
{
'path': r'/mandaye/disassociate$',
'method': 'GET',