[keycloak-user] Password Policies do not Work When There is a User Federation

cedric@couralet.eu cedric at couralet.eu
Fri Oct 11 08:41:12 EDT 2019


Le Vendredi, Octobre 11, 2019 13:40 CEST, İlhan Subaşı <i.subasi at medyatakip.com> a écrit: 
 
> I have build an custom user storage provider using this example 
> https://github.com/thomasdarimont/keycloak-user-storage-provider-demo/tree/master/jar-module/src/main/java/de/tdlabs/keycoak/ext/storage/demo
> 
> Unfortunately when you activate this user federation then password 
> policies do not work. For example under Authentication -> Password 
> Policy -> Add policy... -> Minimum Length. This does not work. Is there 
> any workaround to activate password policies?
> 

I think you have to call the policy explicitly in your provider when updating password. 
Look in the LdapStorageProvider for an example : 
https://github.com/keycloak/keycloak/blob/master/federation/ldap/src/main/java/org/keycloak/storage/ldap/LDAPStorageProvider.java#L626




>




More information about the keycloak-user mailing list