This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-29
Channels
- # aleph (2)
- # architecture (1)
- # beginners (5)
- # boot (7)
- # cider (24)
- # clara (28)
- # cljs-dev (7)
- # cljsjs (3)
- # cljsrn (24)
- # clojure (145)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-uk (54)
- # clojurescript (159)
- # cursive (49)
- # data-science (8)
- # datomic (23)
- # editors (10)
- # emacs (2)
- # fulcro (123)
- # graphql (12)
- # hoplon (2)
- # java (23)
- # jobs (1)
- # jobs-discuss (2)
- # leiningen (17)
- # mount (5)
- # nrepl (5)
- # off-topic (20)
- # om (2)
- # onyx (25)
- # parinfer (2)
- # pedestal (1)
- # re-frame (8)
- # reagent (7)
- # ring-swagger (1)
- # shadow-cljs (24)
- # spacemacs (7)
- # specter (6)
- # tools-deps (7)
- # vim (2)
So, this question has little to do with Clojure, but my application will be in Clojure and I guess I'll ask here. I'm currently rewriting an SPA that I also want to make into an app, and in the past I've used jwt in localstorage and cookies for authentication. I've since learned jwt in localstorage is a bad idea, and cookies are not ideal for mobile apps. What authentication scheme is best?
Is there some library you can run on a codebase that show which functions call which other functions? Would be very helpful when learning a new codebase
This thread had some interesting options I was unaware of (so can't comment on, beyond saying they look handy!): https://stackoverflow.com/questions/41946753/how-can-i-trace-code-execution-in-clojure
I have a compojure api context like this:
(context "/api/test" []
:tags ["Some tags"]
:middleware [wrap-session-auth]
:auth-rules authenticated?
(POST "/do_something_1" []
:body [...]
:return ...
(ok ...))
(POST "/do_something_2" []
:body [...]
:return ...
(ok ...))
(POST "/do_something_3" []
:body [...]
:return ...
(ok ...))
(POST "/do_something_4" []
:body [...]
:return ...
(ok ...))
...
I want to override :auth-rules
for a single method only. Say do_something_2
. For that, I don't want :auth-rules
to be evaluated. How do I get this done?