Hi,

I'm trying to incorporate authentication via the interactive form workflow; 
however, I'm currently unable to receive submitted credentials for 
verification. When I submit the sign-in form that has it's action bound to 
"/login", I get "Page not found" as per my default route below. I've 
included the relevant code below; does anyone see anything wrong? 

Note: For the first go-around I opted for a dummy in-memory user db. I'm 
also using compojure, ring-anti-forgery and shoreleave-remote.

(defroutes paths
  (GET "/home" [] (friend/authorize #{::user} views/home))
  (GET "/" [] (views/welcome))
  (friend/logout (ANY "/sign-out" request (ring.util.response/redirect 
"/")))
  (route/resources "/")
  (route/not-found "Page not found"))

(def app
  (-> paths
      (friend/authenticate {:credential-fn (partial 
credentials/bcrypt-credential-fn users)
                            :workflows [(workflows/interactive-form)]
                            :login-uri "/"})
      (wrap-anti-forgery)      
      (wrap-rpc)
      (handler/site)))

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to