This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-16
Channels
- # announcements (2)
- # beginners (50)
- # boot (80)
- # calva (4)
- # cider (58)
- # cljs-dev (11)
- # clojure (140)
- # clojure-brasil (1)
- # clojure-denver (1)
- # clojure-dev (10)
- # clojure-europe (8)
- # clojure-finland (2)
- # clojure-italy (5)
- # clojure-nl (2)
- # clojure-quebec (1)
- # clojure-spec (2)
- # clojure-sweden (4)
- # clojure-uk (94)
- # clojurescript (98)
- # cursive (19)
- # data-science (1)
- # datascript (9)
- # datomic (43)
- # emacs (2)
- # fulcro (29)
- # graphql (41)
- # hoplon (15)
- # jobs (2)
- # kaocha (4)
- # liberator (24)
- # off-topic (9)
- # perun (1)
- # re-frame (11)
- # reagent (17)
- # reitit (8)
- # remote-jobs (2)
- # rum (2)
- # shadow-cljs (24)
- # spacemacs (1)
- # specter (1)
- # tools-deps (21)
hello, I'm trying to get some basic session authentication working with buddy, and I'm having trouble with the wrap-session
and wrap-authentication
middleware pieces
here's a simplified version of what I'm looking at:
(def rei
(ring/ring-handler
(ring/router
[["/" {:get home}]
["/login" {:get login
:post login-authenticate}]
["/logout" {:get logout}]
["/user" {:get user}]]
{:data {:middleware [wrap-auth
wrap-params
wrap-session]}})))
wrap-session
is adding the :session keyword, but it doesn't seem to be adding the :session/key value
I decided to just write my own auth middleware, rather than use the ring-session and buddy-auth stuff
it just wasn't worth the time investment to figure out something that should be simple
@datran wrote an issue about that, hopefully explains why it doesn’t work (and how to make it work): https://github.com/metosin/reitit/issues/205