Fork me on GitHub
#clojure
<
2019-01-13
>
mseddon11:01:51

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?

Alex Miller (Clojure team)13:01:38

There鈥檚 a branch in brew-install with a more up to date version of those

Alex Miller (Clojure team)13:01:35

Although they are lagging a few of the latest changes

馃憤 5
mseddon14:01:05

I was wondering where those where hiding, thanks!

kwladyka16:01:39

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 馃檪

souenzzo16:01:13

@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/

souenzzo16:01:15

It use sessions/cookies. Somehow (pedestal handles it. I dont know how) if the browser do a F5, then it deliver the same token.

kwladyka16:01:20

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.

kwladyka16:01:35

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.

kwladyka17:01:38

Hmm my buddy can be what I am looking for

kulminaator19:01:44

you can also secure rest api's via jwt

Karol W贸jcik19:01:39

Is there a way to install dependency from github with a specific sha using leiningen?

Lennart Buit19:01:29

I know that a deps.edn can specify that, and I know of integration tools between the two

Lennart Buit19:01:59

but that may be a bit of a wonky solution

kwladyka21:01:18

use deps.edn, if you really want to have lein use https://github.com/RickMoynihan/lein-tools-deps

Karol W贸jcik22:01:15

Thank you @kwladyka! Since i just wanted to explore hot module reloading with tools.deps.alpha I will definetely stick to deps.edn.

Karol W贸jcik22:01:09

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.

kwladyka22:01:40

sure, I will answer tomorrow. I am going sleep now 馃檪

Karol W贸jcik22:01:45

Have a deep sleep! 馃挙 See you!

martinklepsch19:01:03

(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?

martinklepsch19:01:48

I guess a class doesn't count as a literal/constant?

jonas19:01:30

Can鈥檛 you define a protocol for this?

martinklepsch19:01:33

Right, that should work, good idea 馃憤