Skip to content

kzar/ring-hmac-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ring-hmac-check

Ring middleware that checks POST requests have a valid HMAC of the HTTP POST body in the header.

Usage

With Noir - in server.clj

  (server/add-middleware wrap-hmac-check {:algorithm "HmacSHA512" :header-field "AUTH-HMAC"
                                          :secret-key "FIXME put key here"})

License

Copyright (C) 2011 Dave Barker

Code distributed under the Eclipse Public License, the same as Clojure.

About

Ring middleware for HMAC checking.

Resources

Stars

Watchers

Forks

Packages

No packages published