Auth Token Implementation for a REST api

206 views
Skip to first unread message

Geoff Little

unread,
Jun 30, 2014, 5:44:11 PM6/30/14
to clojur...@googlegroups.com
Hi everybody, I've been Googleing for resources on implementing authentication for a simple REST api in Clojure but I can't find a clear standard.


Does anyone know of a simple library I can use with liberator (for the api-part) to, someone suggested, implement an authentication scheme using an auth token?

Thanks!

António Monteiro

unread,
Jul 1, 2014, 10:09:19 AM7/1/14
to clojur...@googlegroups.com

Not sure if this is what you want, but have you had a look into Friend (https://github.com/cemerick/friend)?

There's also a nice tutorial on hooking it up with Liberator here: http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/

Alan Moore

unread,
Jul 1, 2014, 3:54:33 PM7/1/14
to clojur...@googlegroups.com
On Monday, June 30, 2014 2:44:11 PM UTC-7, Geoff Little wrote:
> Does anyone know of a simple library I can use with liberator (for the api-part) to, someone suggested, implement an authentication scheme using an auth token?

As Antonio said, Friend is your friend :-)

Also, I found this example to be a fairly complete starting point for building a REST API w/ Friend and other libraries you will likely need. While it isn't a "basic" example, it is something like what you might end up with once you flesh your app out a bit.

https://github.com/thegeez/clj-crud

Good luck!

Alan

Geoff Little

unread,
Jul 3, 2014, 4:25:11 PM7/3/14
to clojur...@googlegroups.com
Thanks guys!



--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/iLZCLcBhfLM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Andrey Antukh

unread,
Jul 5, 2014, 5:58:51 AM7/5/14
to clojur...@googlegroups.com
Hi

Without aims to do spam, it here an alternative to friend for authentication: http://niwibe.github.io/buddy/index.html

;)
Andrey


You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages