luminus

jeremy 2019-01-10T17:32:13.007600Z

With compojure, what is the following actually doing?

(defmethod restructure-param :current-user
  [_ binding acc]
  (update-in acc [:letks] into [binding `(:identity ~'+compojure-api-request+)]))

jeremy 2019-01-10T17:33:02.008400Z

Does it look for :current-user in the route and then bind identity, not sure on the compojure-api-request bit.

jeremy 2019-01-10T17:34:47.009Z

Sorry if my question seems a little vague. I am trying to tie in buddy jwt to my luminus service routes. I have been following this http://www.luminusweb.net/docs/services.html

jeremy 2019-01-10T17:35:21.009400Z

I am not sure where :current-user user is coming from.

jeremy 2019-01-10T17:54:53.010500Z

I wonder if it’s unimportant and what I’m suppose to expect is for buddy to inject :identity into the request when decomposing the JWT?