python-keycloak
python-keycloak copied to clipboard
Password policy - exception handling
Hi all,
I notice that exceptions.py not handling password policy exceptions.
For example, when I set policy to have "At least on uppercase" char in password and call keycloak_admin.set_user_password(...) method the exception which I get from Keycloak
400: b'{"error":"invalidPasswordMinUpperCaseCharsMessage","error_description":"Invalid password: must contain at least 1 upper case characters."}'
Any ideas how to make it easy support?
This is more like feature to support this in some of the next updates ;)
BR