keystone/keystone/tests/unit/identity
Gage Hugo 8ab4eb27be Hide AccountLocked exception from end users
This change hides the AccountLocked exception from being returned
to the end user to hide sensitive information that a potential
malicious person could gain insight from.

The notification handler catches the AccountLocked exception as
before, but after sending the audit notification, it instead
bubbles up Unauthorized rather than AccountLocked.

Co-Authored-By: Samuel de Medeiros Queiroz <samueldmq@gmail.com>

Change-Id: Id51241989b22c52810391f3e8e1cadbf8613d873
Related-Bug: #1688137
(cherry picked from commit ac2631ae33)
2021-05-10 15:46:28 +00:00
..
backends Properly handle octet (byte) strings when converting LDAP responses 2020-08-25 08:04:17 -05:00
shadow_users Stop adding entry in local_user while updating ephemerals 2019-12-11 16:07:06 -03:00
__init__.py Variable 'domain_ref' referenced before assignment 2014-02-17 14:46:23 +00:00
test_backend_sql.py Hide AccountLocked exception from end users 2021-05-10 15:46:28 +00:00
test_backends.py Remove six usage 2020-01-30 06:06:51 +00:00
test_core.py Switch from mock to unittest.mock use 2020-03-02 13:40:40 -06:00