fix idp initiated logout

This commit is contained in:
Jérôme Schneider 2014-10-08 19:08:49 +02:00
parent 7bd839dcc8
commit 5cda351b4c
6 changed files with 20 additions and 23 deletions

View File

@ -8,5 +8,5 @@
"saml2_idp_metadata": "http://authentic.local/idp/saml2/metadata",
"saml2_signature_public_key": "certs/saml.crt",
"saml2_signature_private_key": "certs/saml.key",
"sp_logout_url": "/sezhame/mandayelogout"
"sp_logout_url": "/sezhame/logout"
}

View File

@ -8,5 +8,5 @@
"saml2_idp_metadata": "http://authentic.local/idp/saml2/metadata",
"saml2_signature_public_key": "certs/saml.crt",
"saml2_signature_private_key": "certs/saml.key",
"sp_logout_url": "/vincennes-noredirect/mandayelogout"
"sp_logout_url": "/vincennes-noredirect/deconnexion.do"
}

View File

@ -13,9 +13,6 @@ from mandaye.template import serve_template
from mandaye.backends.default import Association
def local_logout(env, values, request, response):
return _302(config.template_vars.get('wcs_url'), response.cookies)
def get_associate_form(env, values):
""" Return association template content
"""

View File

@ -1,4 +1,5 @@
from mandaye import config
from mandaye.auth.saml2 import END_POINTS_PATH
from mandaye_vincennes.filters import vincennes
@ -73,12 +74,14 @@ mapping = [
}
},
{
'path': r'/sezhame/mandayelogout$',
'path': r'%s$' % END_POINTS_PATH['single_logout_return'],
'method': 'GET',
'target': '/sezhame/logout',
'on_response': [{
'filter': vincennes.local_logout,
}]
'response': {
'auth': 'single_logout_return',
'values': {
'next_url': config.template_vars.get('wcs_url')
}
}
},
{
'path': r'/mandaye/associate$',

View File

@ -1,4 +1,5 @@
from mandaye import config
from mandaye.auth.saml2 import END_POINTS_PATH
from mandaye_vincennes.filters import vincennes
@ -82,16 +83,10 @@ mapping = [
'response': {
'auth': 'single_logout_return',
'values': {
'next_url': '/mandayelogout',
'next_url': config.template_vars.get('wcs_url')
}
}
},
{
'path': r'/mandayelogout$',
'method': 'GET',
'target': '/Connect.aspx?key=%s' % duonet_key,
'on_response': [{'filter': vincennes.local_logout}]
},
{
'path': r'/mandaye/sso$',
'method': 'GET',

View File

@ -1,4 +1,5 @@
from mandaye import config
from mandaye.auth.saml2 import END_POINTS_PATH
from mandaye_vincennes.filters import vincennes
@ -91,14 +92,15 @@ mapping = [
}
},
{
'path': r'%s/mandayelogout$' % folder_target,
'path': r'%s$' % END_POINTS_PATH['single_logout_return'],
'method': 'GET',
'target': '%s/deconnexion.do' % folder_target,
'on_response': [{
'filter': vincennes.local_logout,
}]
'response': {
'auth': 'single_logout_return',
'values': {
'next_url': config.template_vars.get('wcs_url')
}
}
},
{
'path': r'/mandaye/disassociate$',
'method': 'GET',