You could also take a look at friend-oauth2 if you are using it in the
context of Friend--if it doesn't work for you for some reason I'd like
to know why, as I'd like it to be able to handle this use-case.

https://github.com/ddellacosta/friend-oauth2

Thanks!

DD

(2014/12/15 3:08), Sebastian Bensusan wrote:
> Hi,
> 
> I am writing a Single Page Application using Om that communicates via
> XHR with a REST API using compojure + liberator. I should be able to
> authenticate users by using email & password credentials or third party
> Oauth2 like Linkedin's. I
> 
> My plan is: use clauth [1] to roll my own oauth2, package it as a friend
> credential-fn/workflow, and then wrap the liberator api with
> friend [2]  and the third parties workflows.
> 
> Anybody has any pointers on how to do this? It is a complex solution but
> I have no ideas on how to simplify it. 
> 
> Thanks for your time!
> 
> Sebastian
> 
> [1] https://github.com/pelle/clauth
> [2] 
> http://sritchie.github.io/2014/01/17/api-authentication-with-liberator-and-friend/
> 
> -- 
> 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
> ---
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+unsubscr...@googlegroups.com
> <mailto:clojure+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to