convert lasso error to error page

This commit is contained in:
Frédéric Péters 2009-04-06 15:38:08 +00:00
parent 6b4e45a502
commit d1f53986b8
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ class Saml2Directory(Directory):
return template.error_page(_('Authentication failure; unknown principal'))
if error[0] == lasso.LOGIN_ERROR_FEDERATION_NOT_FOUND:
return template.error_page(_('Authentication failure; federation not found'))
if error[0] == lasso.PROFILE_ERROR_MISSING_RESPONSE:
return template.error_page(_('Authentication failure; failed to get response'))
raise
return self.sso_after_response(login,