I have not seen something like that in Clojure - so as my first coding 
excercise in Clojure I've started porting my Perl library.

https://github.com/zby/ring-form-authentication

Quoting the README:

It lets you quickly add to your application "/login" and "/logout" pages 
pluss all the redirects and session management needed.

It is a Ring based middleware.

After the user has authenticated the session keeps his userid and the 
application can check it for authorization: 
(if (get (get request :session) :userid )

See example application in src/ring_form_authentication/example.clj

This is very EXPERIMENTAL - it is my first code in Clojure.

Any comments are welcome.  I really just started learning Clojure and I 
have not yet managed to read about all the language features.

Cheers,
Zbigniew

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to