This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-13
Channels
- # announcements (2)
- # beginners (29)
- # boot (122)
- # cider (9)
- # clara (6)
- # cljs-dev (9)
- # clojure (27)
- # clojure-art (3)
- # clojure-dusseldorf (5)
- # clojure-europe (1)
- # clojure-india (2)
- # clojure-losangeles (1)
- # clojure-spec (29)
- # clojure-uk (2)
- # clojurescript (56)
- # cursive (11)
- # datomic (9)
- # fulcro (8)
- # liberator (1)
- # off-topic (2)
- # other-lisps (1)
- # quil (37)
- # re-frame (2)
- # reitit (1)
- # ring (4)
- # test-check (4)
- # tools-deps (3)
I've just kludged the powershell scripts in https://dev.clojure.org/jira/browse/INST-15 (and adding the jvm-file and main-file arguments in), and appear to have a working clojure-cli under windows. Has anyone else tried this, and run into further problems down the line?
There鈥檚 a branch in brew-install with a more up to date version of those
What is your best stack for authentication and authorization? What do you use? - https://github.com/funcool/buddy ? - With GraphQL or you prefer REST for authentication and GraphQL for authorization with queries? - OAuth2? - REST API for authentication by POST? Return HTTP 200? JSON input / output? My concerns: - I want to have GraphQL, but not sure if authentication should be separated as REST API. - authentication should return token to use with authorization with GraphQL - Users will be able to generate extra tokens for integrations like in GitHub I confused myself about the way how to solve it. In other words I am asking about your best way how to do it with full details about libraries, methods, concepts, choices 馃檪
@kwladyka #fulcro recomends this csrf. I liked it after I met. You generate a token and deliver it on HTML. Then the application send it on body or headers. https://stuarth.github.io/clojure/csrf-pedestal/
It use sessions/cookies. Somehow (pedestal handles it. I dont know how) if the browser do a F5
, then it deliver the same token.
Thank for that article. That will be for sure something which I will have to do too. For now I confused myself on level of thinking about authentication query / response / library vs my code.
I am talking about BE side mainly now, not FE. Not how to send data by JS, but for example if it should be separate REST API only for auth by POST, accept JSON (not?) and return JSON (not?) by HTTP 200. Or GraphQL, because I want to have it anyway probably.
you can also secure rest api's via jwt
Is there a way to install dependency from github with a specific sha using leiningen?
I know that a deps.edn
can specify that, and I know of integration tools between the two
but that may be a bit of a wonky solution
use deps.edn
, if you really want to have lein use https://github.com/RickMoynihan/lein-tools-deps
Thank you @kwladyka! Since i just wanted to explore hot module reloading with tools.deps.alpha I will definetely stick to deps.edn.
Btw, may I DM you @kwladyka? I鈥檓 seeking for remote job in PL so if you would like to give me some tips then I would be more than grateful.
Have a deep sleep! 馃挙 See you!
(case (type x)
org.jsoup.nodes.Document x
I want to dispatch based on the type/class of a thing but this doesn't work as I expected. Do I have to use if
? Or is there some other construct for this?I guess a class doesn't count as a literal/constant?
Right, that should work, good idea 馃憤