saml: handle PROFILE_ERROR_STATUS_NOT_SUCCESS like lasso.LOGIN_... (#8616)
This commit is contained in:
parent
0d4f07d56f
commit
83a10b716e
|
@ -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 == \
|
||||
|
|
Loading…
Reference in New Issue