Fork me on GitHub
#yada
<
2018-11-16
>
grav21:11:53

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)

grav21:11:40

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?

grav21:11:57

(it’s still referred in the docs though)

dominicm21:11:31

We use it I think, maybe. I'll have to check.

👍 4