mappers: use new syntax for reponse
This commit is contained in:
parent
e4921500f9
commit
0636b661c4
|
@ -49,24 +49,20 @@ mapping = [
|
|||
{
|
||||
'path': r'/mandaye/login$',
|
||||
'method': 'GET',
|
||||
'response': [{
|
||||
'response': {
|
||||
'auth': 'login',
|
||||
'condition': 'response.code==302',
|
||||
},]
|
||||
}
|
||||
},
|
||||
{
|
||||
'path': r'/mandaye/sso$',
|
||||
'method': 'GET',
|
||||
'response': [{
|
||||
'auth': 'sso',
|
||||
}]
|
||||
'response': {'auth': 'sso',}
|
||||
},
|
||||
{
|
||||
'path': r'/mandaye/slo$',
|
||||
'method': 'GET',
|
||||
'response': [{
|
||||
'auth': 'slo',
|
||||
}]
|
||||
'response': {'auth': 'slo',}
|
||||
},
|
||||
{
|
||||
'path': (r'/ffaxsslMeyzieu/$', r'/ffaxsslMeyzieu/workflow_url$'),
|
||||
|
@ -114,34 +110,30 @@ mapping = [
|
|||
{
|
||||
'path': r'/ffaxsslMeyzieu/mandaye_associate$',
|
||||
'method': 'POST',
|
||||
'response': [
|
||||
{
|
||||
'auth': 'associate_submit',
|
||||
'condition': "response.code==302"
|
||||
},
|
||||
]
|
||||
'response': {
|
||||
'auth': 'associate_submit',
|
||||
'condition': "response.code==302"
|
||||
}
|
||||
},
|
||||
{
|
||||
'path': r'%s$' % END_POINTS_PATH['single_sign_on_post'],
|
||||
'method': 'POST',
|
||||
'response': [{'auth': 'single_sign_on_post'}]
|
||||
'response': {'auth': 'single_sign_on_post'}
|
||||
},
|
||||
{
|
||||
'path': r'%s$' % END_POINTS_PATH['single_logout'],
|
||||
'method': 'GET',
|
||||
'response': [{
|
||||
'auth': 'single_logout',
|
||||
}]
|
||||
'response': {'auth': 'single_logout',}
|
||||
},
|
||||
{
|
||||
'path': r'%s$' % END_POINTS_PATH['single_logout_return'],
|
||||
'method': 'GET',
|
||||
'response': [{
|
||||
'response': {
|
||||
'auth': 'single_logout_return',
|
||||
'values': {
|
||||
'next_url': index_url
|
||||
},
|
||||
}]
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Reference in New Issue