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.
all
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
Yes
Yada can't know what your intent is.
It has to call your response function when the semantics of the method are undefined.