Fork me on GitHub
#luminus
<
2019-01-10
>
jeremy17:01:13

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+)]))

jeremy17:01:02

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

jeremy17:01:47

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

jeremy17:01:21

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

jeremy17:01:53

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?