Interface ImportedUserValidation

  • All Known Implementing Classes:
    KerberosFederationProvider, LDAPStorageProvider, SSSDFederationProvider

    public interface ImportedUserValidation
    This is an optional capability interface that is intended to be implemented by any UserStorageProvider that supports validating users. You must implement this interface if your storage imports users into the Keycloak local storage and you want to sync these users with your storage. The idea is, that whenever keycloak queries users imported from your storage, the method validate() is called and if it returns null, the user is removed from local storage and reloaded from your storage by corresponding method.
    $Revision: 1 $
    Bill Burke
    • Method Detail

      • validate

        UserModel validate​(RealmModel realm,
                           UserModel user)
        If this method returns null, then the user in local storage will be removed
        realm -
        user -
        null if user no longer valid