                                                   "type" "password"
                                                   "value" tmp-password})
                               :headers headers})))
+
   (remove-user
     [this tenant author-claims user-id]
     (do-remove-user this tenant author-claims user-id))

                                          "emailVerified" false
                                          "enabled" true})
                               :headers headers})))
  (demote-user-from-admin
    [this tenant author-claims user-id]
    (do-demote-user-from-admin this tenant author-claims user-id))


(defmethod ig/init-key :akvo.lumen.component.keycloak/keycloak  [_ {:keys [credentials data max-user-ids-cache monitoring] :as opts}]
  (log/info "Starting keycloak")
  (let [issuer (format "%s/realms/%s" (:url data) (:realm data))
        connection-manager (http.client/new-connection-manager {:timeout 10 :threads 10 :default-per-route 10})
        openid-config      (fetch-openid-configuration issuer {})]
    (log/info "Successfully got openid-config from provider.")
    (assoc (init-keycloak (assoc data :credentials credentials :max-user-ids-cache max-user-ids-cache))
           :connection-manager connection-manager
           :openid-config openid-config
           :monitoring monitoring)))
