   (allowed-paths [this email]
     (allowed-paths this email)))
 
-(defn- init-keycloak [{:keys [credentials http-timeout url realm max-user-ids-cache]}]
+(defn- init-keycloak [{:keys [credentials url realm max-user-ids-cache]}]
   (map->KeycloakAgent {:api-root (format "%s/admin/realms/%s" url realm)
                        :credentials credentials
                        :issuer (format "%s/realms/%s" url realm)
-                       :user-id-cache (atom (cache/lru-cache-factory {} :threshold max-user-ids-cache))
-                       :http-timeout http-timeout}))
+                       :user-id-cache (atom (cache/lru-cache-factory {} :threshold max-user-ids-cache))}))
 
 (defmethod ig/init-key :akvo.lumen.component.keycloak/data  [_ {:keys [url realm] :as opts}]
   (try

          (println (format "Tried to promote user: %s" user-id))
          (lib/internal-server-error))))))


(defn do-demote-user-from-admin
  [{:keys [api-root] :as keycloak} tenant author-claims user-id]
  (if (= (get author-claims "sub") user-id)

          (println (format "Tried to remove user: %s" user-id))
          (lib/internal-server-error))))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; API Authorization
;;;
