Skip to content

Commit

Permalink
Add wrap-params to demo app.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentonashworth committed Jun 20, 2011
1 parent e5e0977 commit 40e4fe2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/examples/auth/form_auth.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

(ns examples.auth.form-auth
"Simple example of using sandbar.auth with sandbar.form-authentication."
(:use (ring.adapter jetty)
(ring.middleware params file file-info)
(compojure core)
(hiccup core page-helpers)
(sandbar core stateful-session auth
form-authentication validation)
(examples.auth [auth :only (load-data-from
(:use [ring.adapter jetty]
[ring.middleware params file file-info]
[compojure core]
[hiccup core page-helpers]
[sandbar core stateful-session auth
form-authentication validation]
[examples.auth [auth :only [load-data-from
layout
home-view admin-view member-view
permission-denied-view)])))
permission-denied-view]]]))

;; Building on the auth-demo code, adding form based
;; authentication. Please check out that demo first in order to
Expand Down Expand Up @@ -101,6 +101,7 @@
(-> my-routes
(with-security form-authentication)
wrap-stateful-session
wrap-params
(wrap-file "public")
wrap-file-info
(with-secure-channel security-config 8080 8443)))
Expand Down

0 comments on commit 40e4fe2

Please sign in to comment.