Fork me on GitHub

Hi all, I managed to eval Clojure in org-mode without project.clj and cider. Maybe someone is looking for this solution, you can check my emacs config:

parrot 21

Hello - while working on a project recently for which I developed user authentication, I decided to separate the auth part out into its own repo for my own reference later, and I figure others might find it useful as well, especially if you want to use pedestal. There's some packaging and deployment in there as well.

metal 51
parrot 3
bmo 3
👍 3

Thank you for this! 🙂 These things tend to be really complex once one decide to go feature complete (just see the flow chart for proper REST resource!), so having this available as template is of a great help 👍


And just in case you're not aware what I'm referencing:

Lucy Wang14:06:08

Just read a bit about the code, seems the session must be tied to a user - which makes me thinking how would you implement features like "require captcha after logging in failed for 3+ times" ?


@U8SFC8HLP Welcome! Yeah I made the flow chart mainly to keep track of what I was doing to begin with. @UP90Q48J3 The sessions can be anonymous - user_id is null in the db row in that case (to be specific). See the anonymous-session interceptor here:


There may be a better way to handle anon sessions - but this is a simple starting point / works.

Lucy Wang08:06:48

Thanks, LGTM!

👍 3