Session handling with OAuth


#1

I’ve just started learning clojure and I’m at the point I want to create an application. I do java/groovy/javascript in my day job.

I figured out how to authenticate with OAuth + ring, but got stuck in one issue. The friend-oauth library authenticated but doesn’t fetch the user’s profile. I was able to do that but I can’t figure out a way to keep the profile in the session for all future requests. In java I use pac4j which handles this for me. Currently I’m having to do an extra network request to get the user’s name, id, etc from the remote auth service, and it feels a little inefficient. I’m sure I’m doing it wrong. Can someone point me in the right direction?


#2

Nevermind. This was a silly question.