Trying to get cookie auth working, but I’m getting a schema error. I can reproduce it by this minimal expression:
(yada.yada/resource
{:access-control
{:scheme :cookie
:cookie "session"
:verify (fn [cookie])}})
ExceptionInfo Cannot turn resource-model into resource, because it doesn't conform to a resource-model schema clojure.core/ex-info (core.clj:4739)
(removing :cookie "session"
makes it validate)If I look at https://github.com/juxt/yada/blob/master/src/yada/security.clj#L22 it also seems something regarding cookies has been commented out. So I guess the status is that it’s not implemented anymore?
(it’s still referred in the docs though)
We use it I think, maybe. I'll have to check.