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 ]
For one thing, your client id and client secret are not the same case
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
Or post in this case, I guess
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
What's the error you are getting? I'm not familiar with postman.
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
okay 🙂
nope, still 401
I always use aleph.http/request with :method
set to :post
hmm why?
(aleph.http/request {:method :post :url "uuuuurrrlll"})
can you paste the curl request?
one sec
holy shit … case sensitive content-type
it’s working now
LOL
so do it the right way from now on @stijn 🙂
that's a pretty awesome http response code in that case
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 _
I would agree :)