anchor.diff:  You can see a complete example of using this backend <<example-jws,here>>.
   
   
  -=== JWE Token
  +==== JWE Token
   
   This backend is almost identical to the previous one (JWS).
   
  -The main difference is that the backend uses JWE (Json Web Encryption) instead of JWS
  -(Json Web Signature) and it has the advantage that the content of the token is encrypted
  -instead of simply signed. This is useful when token may contain some additional user
  -information that should not be public.
  -
  -It will look similar to the previous (jws) example but instead using jwe with asymmetric
  -key encryption algorithm:
  -
  -[source, clojure]
  -----
  -(require '[buddy.auth.backends.token :refer (jwe-backend)])
  +The main difference is that the backend uses JWE (Json Web Encryption) instead of
  +JWS (Json Web Signature) and it has the advantage that the content of the token is
  +encrypted instead of simply signed. This is useful when token may contain some
  +additional user information that should not be public.
  +
  +It will look similar to the previous (jws) example but instead using jwe with
  +asymmetric key encryption algorithm:
  +
  +[source, clojure]
  +----
  +(require '[buddy.auth.backends :as backends])
   (require '[buddy.auth.middleware :refer (wrap-authentication)])
   (require '[buddy.sign.jwe :as jwe])
   (require '[buddy.core.keys :as keys])
  
positive.code: ;; Define app var with handler wrapped with _buddy-auth_'s authentication
  ;; middleware using the previously defined backend.
  
  (def app (-> my-sample-handler
               (wrap-authentication backend)))
  ----
  
  All requests that reach the `my-sample-handler` will be properly processed and
  authenticated. In the process of authentication the `:identity` keyword will be attached
  to the request with a not `nil` value if the user is successfully authenticated.
  
  You can see a complete example of using this backend <<example-httpbasic,here>>.
  
  
  === Session
  
  The session backend has the simplest implementation because it relies entirely on
  ring session support.
  
negative.code: = buddy-auth - Auth/Authz facilities for ring based apps.
  Andrey Antukh, <niwi@niwi.nz>
  0.12.0
  :toc: left
  :!numbered:
  :source-highlighter: pygments
  