python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

Password policy - exception handling

Open deba1234 opened this issue 3 years ago • 0 comments

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

deba1234 avatar Dec 09 '22 09:12 deba1234