   [token]
   (let [header (format "Token %s" token)]
     {:headers {"auThorIzation" header}}))
-
-(defn make-jws-request
-  [data secret]
-  (let [header (->> (jws/sign data secret)
-                    (format "Token %s"))]
-    {:headers {"authorization" header}}))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Tests: parse

                      (wrap-authentication backend))
          response (handler request)]
      (is (= (:status response) 3000)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tests: Token

(def jws-backend (token/jws-backend {:secret jws-secret}))
(def jws-data {:userid 1})

(defn make-jws-request
  [data secret]
  (let [header (->> (jws/sign data secret)
                    (format "Token %s"))]
    {:headers {"authorization" header}}))

(deftest jws-backend-test
  (testing "Jws token backend authentication"
    (let [request (make-jws-request jws-data jws-secret)
