How to obtain current user metadata in Clojure Friend? -


i using friend library. need provide request handler return user roles (and possibly other metadata) logged in user.

i've added simple request handler:

  (get "/userinfo.do" request       (friend/identity request)) 

but returns nil. proper way of fetching user session data?

this worked:

  (get "/userinfo.do" request       (json/write-str (friend/current-authentication))) 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -