saml: handle PROFILE_ERROR_STATUS_NOT_SUCCESS like lasso.LOGIN_... (#8616)

This commit is contained in:
Frédéric Péters 2015-10-13 11:09:03 +02:00
parent 0d4f07d56f
commit 83a10b716e
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ class Saml2Directory(Directory):
def assertion_consumer_process_response_error(self, login, error):
if isinstance(error, lasso.DsError):
message = _('Signature verification failed')
elif error[0] == lasso.LOGIN_ERROR_STATUS_NOT_SUCCESS:
elif error[0] in (lasso.LOGIN_ERROR_STATUS_NOT_SUCCESS,
lasso.PROFILE_ERROR_STATUS_NOT_SUCCESS):
try:
# Passive login failed, just continue
if login.response.status.statusCode.statusCode.value == \