anchor.diff:    (-> (response "Unauthorized request")
         (assoc :status 403)))
   
  -(def backend (http-basic-backend
  +(def backend (backends/http-basic
                 {:realm "API"
                  :authfn my-auth-fn
                  :unauthorized-handler my-unauthorized-handler}))
  
positive.code:         password (:password authdata)]
      username))
  
  (def backend (http-basic-backend {:realm "MyApi" :authfn my-authfn}))
  ----
  
  The *authfn* function should accept a _request_ as the first parameter and
  _authdata_ as the second. _authdata_ is data parsed from the request in the
  *parse* step.
  
  The *authfn* will be called only if the *parse* process returns not `nil`.
  
  Finally, you should wrap your ring handler with authentication middleware:
  
  [source,clojure]
  ----
  
negative.code: :sectlinks:
  :idseparator: -
  :idprefix:
  :toclevels: 3
  
  
  == Introduction
  
  _buddy-auth_ is a module that provides authentication and authorization facilites
  for ring and ring based web applications.
  
  === Project Maturity
  
  