This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-31
Channels
- # aleph (38)
- # beginners (91)
- # boot (4)
- # cider (20)
- # clara (11)
- # cljs-dev (4)
- # clojure (179)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-portugal (1)
- # clojure-russia (1)
- # clojure-sanfrancisco (1)
- # clojure-spec (183)
- # clojure-uk (50)
- # clojurescript (111)
- # core-async (24)
- # cursive (4)
- # datascript (11)
- # datomic (29)
- # fulcro (120)
- # gorilla (2)
- # jobs (1)
- # keechma (2)
- # keyboards (26)
- # leiningen (4)
- # luminus (7)
- # lumo (15)
- # off-topic (2)
- # onyx (31)
- # parinfer (12)
- # portkey (1)
- # protorepl (1)
- # re-frame (50)
- # reagent (106)
- # remote-jobs (1)
- # ring-swagger (2)
- # rum (10)
- # spacemacs (17)
- # sql (16)
- # test-check (1)
- # yada (2)
dumb question … how to use post with http client?
I get a 401 when calling but it works when using curl / postman
so I guess the body encoding is wrong in some way
but help / tips welcome 🙂
[ reading the http client code hasn’t helped ]
Does auth0 require basic auth? You haven't included any creds for that in the HTTP call
For basic auth, include {:basic-auth [username password]}
in your options map to http/get
don’t worry about the parameters
I just don’t know how to call POST with aleph
this call (endpoint / body) works with the postman REST client
so there is nothing wrong with the approach
If it's just a 401, you have an authentication issue, which is why I asked if basic auth is requires
ok, sorry to have been prickly … no basic auth needed
it does use x-www-form-urlencoded
@raymcdermott is it correct (like @ehashman pointed out) that your client-secret
has a hyphen instead of underscore?
maybe I’m being a dick
nope, still 401
hmm why?
one sec
holy shit … case sensitive content-type
it’s working now
so do it the right way from now on @stijn 🙂
auth0 - yeah, the best
so this is OK now
@ehashman thanks for your support too
hmmm … maybe not the content-type …. I tried it with Content-Type and it still worked
so it’s working and thanks for your support
probably was the - not being a _