anchor.diff:               (wrap-authorization backend)))
   ----
   
  +
   [[access-rules]]
   === Access Rules
   
  -The access rules system is another part of authorization. It consists of matching an url to
  -specific access rules logic.
  -
  -The access rules consists of an ordered list. This contains mappings between urls and rule handlers using
  -link:https://github.com/weavejester/clout[clout] url matching syntax or regular expressions.
  +The access rules system is another part of authorization. It consists of matching an url
  +to specific access rules logic.
  +
  +The access rules consists of an ordered list. This contains mappings between urls and
  +rule handlers using link:https://github.com/weavejester/clout[clout] url matching syntax
  +or regular expressions.
   
   .This is an example of an access rule using the clout syntax.
   [source, clojure]
  
positive.code:   (GET "/" [] (restrict home-controller {:handler should-be-authenticated
                                           :on-error on-error}))
  ----
  
  [[examples]]
  == Examples
  
negative.code: The authorization system is split into two parts: generic authorization and access-rules
  (explained in the next section).
  
  The generic one is based on exceptions, and consists in raising a unauthorized exception
  in case of the request is considered unauthorized. And the access rules system is based
  in some kind of rules attached to handler or a _URI_ and that rules are determine if a
  request is autorized or not.
  
  
  === Exception-Based
  
  This authorization approach is based in wrap everything in a try/catch block witch only
  handles specific exceptions. When an unauthorized exception is caught, it executes a
  specific function to handle it or reraises the exception.
  
  With this approach you can define our own middlewared/decorators using custom
  authorization logic with fast skip, raising an unauthorized exception using the
  `throw-unauthorized` function.
  
  .Example ring handler raising an unauthorized exception.
  [source, clojure]
  