logout: fixing toolbar slo and disable slo on standard button
This commit is contained in:
parent
cc041feb0c
commit
3e20be815c
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -148,9 +148,5 @@ mapping = [
|
|||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
'path': r'/sezhame/logout$',
|
||||
'on_response': [{'auth': 'slo'}]
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -116,14 +116,6 @@ mapping = [
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'path': r'%s/deconnexion.do$' % folder_target,
|
||||
'on_response': [
|
||||
{
|
||||
'auth': 'slo',
|
||||
'next_url': '/'
|
||||
}],
|
||||
},
|
||||
{
|
||||
'path': r'/mandaye/disassociate$',
|
||||
'method': 'GET',
|
||||
|
|
Reference in New Issue