This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-09
Channels
- # aleph (16)
- # bangalore-clj (1)
- # beginners (57)
- # cider (4)
- # clara (1)
- # cljs-dev (25)
- # cljsrn (12)
- # clojure (76)
- # clojure-dusseldorf (2)
- # clojure-italy (41)
- # clojure-russia (4)
- # clojure-spec (3)
- # clojure-uk (122)
- # clojurescript (101)
- # cursive (8)
- # data-science (30)
- # datomic (2)
- # emacs (2)
- # figwheel (10)
- # fulcro (53)
- # garden (5)
- # gorilla (6)
- # hoplon (1)
- # jobs (1)
- # juxt (14)
- # leiningen (12)
- # om (1)
- # om-next (1)
- # onyx (21)
- # pedestal (40)
- # perun (5)
- # portkey (2)
- # re-frame (16)
- # reagent (1)
- # ring-swagger (3)
- # rum (6)
- # shadow-cljs (239)
- # spacemacs (10)
- # specter (9)
- # uncomplicate (2)
- # unrepl (1)
- # vim (13)
- # yada (16)
hi guys, how can I handle authentication using JWT in a HTTP header?
I've taken a little dive into the source code and tried providing a custom :verify
handler in the :access-control
map but got a cryptic error about not being able to create the resource, something like :error :access-control :realm "default" not (namespace :verify)
(don't remember which bracket goes where)
It means that you're trying to put the verify function at the wrong level
yada only expects a certain set of unqualified keywords at each level of the map
you'll need to show the full error, also helpful is to show the ex-data for the exception
Am I looking at :exists?
correctly in the issue above, or am I misunderstanding what it's for?
It is for allowing properties to sat that a resource doesn't exist so the response fn doesn't need to be called at.
A PUT to a resource that doesn't exist is quite valid.
As is a POST
But a GET would be 404
Depends on the method's semantics
So if I want to return 404 to a PUT, then I need to return it myself?
Fair enough
Yada can't know what your intent is.
It has to call your response function when the semantics of the method are undefined.