Re: ANN qarth 0.1.0, an OAuth library

2015-02-02 Thread Ricardo Acuna
Hi

I think that Qarth is really great, but I'm having trouble with Scribe. I'm 
trying to get Khan Academy's OAuth API working, and I have a clj-oauth 
workflow that get's me an access token, but I haven't been able to set it 
up such that I send a simple GET request through. I found out this guy 
implemented it in Java using Scribe 
http://stackoverflow.com/questions/21964582/trouble-retrieving-request-token-for-khan-academy-api-using-scribe,
 
but I don't know enough Java interop to make it work on clojure. Is there a 
way to set up a custom provider with Qarth, like :provider 
org.scribe.builder.api.YahooApi on the documentation? Or a simple way to 
extend Scribes' DefaultApi10a? I know you have to use (proxy) but I'm 
clueless, and haven't seen any code that uses proxy in the wild.


On Thursday, July 24, 2014 at 10:15:11 AM UTC-7, Mike Thvedt wrote:
>
> Qarth is a simple interface to OAuth. Qarth's goal is to fix the problem 
> of Ring/Compojure and/or Friend apps reinventing the wheel for OAuth.
>
> Qarth features zero-effort Friend integration. The interactive auth flow 
> in "friendless" Qarth is two or three lines of code plus configuration. All 
> OAuth providers use the same interface, so that you can swap providers or 
> use "multi" providers (i.e. login with Facebook or Github) with little 
> additional effort.
>
> Qarth comes with out-of-the-box support for Facebook, Github, Twitter, 
> Google, and Yahoo!, and generic support for OAuth v2 and Scribe-Java.
>
> https://github.com/mthvedt/qarth
>
> Qarth is brand new, so please let me know about any issues or rough edges 
> you encounter.
>
> --Mike
> mike@gmail.com 
>

-- 
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.


Re: ANN qarth 0.1.0, an OAuth library

2014-07-25 Thread Mike Thvedt
Hi Plínio,

Thanks for the question. I considered writing Ring handlers for Qarth, but 
since most people would either use Friend or have custom Ring handlers 
anyway, the advantage was unclear. However, Qarth was written s.t. a small 
set of auth-related methods can be adapted to any OAuth provider. This lets 
you write "OAuth agnostic" code if you don't want to use Friend.

Before I wrote Qarth, I asked around Clojure users how they handeld OAuth, 
and a lot of them wrote OAuth handling code by themselves. This didn't seem 
efficient since most people just wanted to do the same thing with 
OAuth--log in users and get a token to make requests. However, differences 
between OAuth providers made code reuse difficult, despite a few attempts 
at fixing the situation. This is the wheel I hope doesn't have to be 
reinvented.

Mike

On Friday, July 25, 2014 8:16:44 AM UTC-5, Plinio Balduino wrote:
>
> Hi, Fred
>
> I never used Friend and I don't have parameters to compare so, why Qarth?
>
> I didn't get the "Qarth's goal is to fix the problem of Ring/Compojure 
> and/or Friend apps reinventing the wheel for OAuth." explanation.
>
> Regards
>
> Plínio
>
>
> On Fri, Jul 25, 2014 at 3:47 AM, Robin Heggelund Hansen <
> skinn...@gmail.com > wrote:
>
>> I was just looking for a OAuth library, this looks great!
>>
>> kl. 19:15:11 UTC+2 torsdag 24. juli 2014 skrev Mike Thvedt følgende:
>>>
>>> Qarth is a simple interface to OAuth. Qarth's goal is to fix the problem 
>>> of Ring/Compojure and/or Friend apps reinventing the wheel for OAuth.
>>>
>>> Qarth features zero-effort Friend integration. The interactive auth flow 
>>> in "friendless" Qarth is two or three lines of code plus configuration. All 
>>> OAuth providers use the same interface, so that you can swap providers or 
>>> use "multi" providers (i.e. login with Facebook or Github) with little 
>>> additional effort.
>>>
>>> Qarth comes with out-of-the-box support for Facebook, Github, Twitter, 
>>> Google, and Yahoo!, and generic support for OAuth v2 and Scribe-Java.
>>>
>>> https://github.com/mthvedt/qarth
>>>
>>> Qarth is brand new, so please let me know about any issues or rough 
>>> edges you encounter.
>>>
>>> --Mike
>>> mike@gmail.com
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@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+u...@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.


Re: ANN qarth 0.1.0, an OAuth library

2014-07-25 Thread Plínio Balduino
Hi, Fred

I never used Friend and I don't have parameters to compare so, why Qarth?

I didn't get the "Qarth's goal is to fix the problem of Ring/Compojure
and/or Friend apps reinventing the wheel for OAuth." explanation.

Regards

Plínio


On Fri, Jul 25, 2014 at 3:47 AM, Robin Heggelund Hansen <
skinney...@gmail.com> wrote:

> I was just looking for a OAuth library, this looks great!
>
> kl. 19:15:11 UTC+2 torsdag 24. juli 2014 skrev Mike Thvedt følgende:
>>
>> Qarth is a simple interface to OAuth. Qarth's goal is to fix the problem
>> of Ring/Compojure and/or Friend apps reinventing the wheel for OAuth.
>>
>> Qarth features zero-effort Friend integration. The interactive auth flow
>> in "friendless" Qarth is two or three lines of code plus configuration. All
>> OAuth providers use the same interface, so that you can swap providers or
>> use "multi" providers (i.e. login with Facebook or Github) with little
>> additional effort.
>>
>> Qarth comes with out-of-the-box support for Facebook, Github, Twitter,
>> Google, and Yahoo!, and generic support for OAuth v2 and Scribe-Java.
>>
>> https://github.com/mthvedt/qarth
>>
>> Qarth is brand new, so please let me know about any issues or rough edges
>> you encounter.
>>
>> --Mike
>> mike@gmail.com
>>
>  --
> 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.
>

-- 
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.


Re: ANN qarth 0.1.0, an OAuth library

2014-07-24 Thread Robin Heggelund Hansen
I was just looking for a OAuth library, this looks great!

kl. 19:15:11 UTC+2 torsdag 24. juli 2014 skrev Mike Thvedt følgende:
>
> Qarth is a simple interface to OAuth. Qarth's goal is to fix the problem 
> of Ring/Compojure and/or Friend apps reinventing the wheel for OAuth.
>
> Qarth features zero-effort Friend integration. The interactive auth flow 
> in "friendless" Qarth is two or three lines of code plus configuration. All 
> OAuth providers use the same interface, so that you can swap providers or 
> use "multi" providers (i.e. login with Facebook or Github) with little 
> additional effort.
>
> Qarth comes with out-of-the-box support for Facebook, Github, Twitter, 
> Google, and Yahoo!, and generic support for OAuth v2 and Scribe-Java.
>
> https://github.com/mthvedt/qarth
>
> Qarth is brand new, so please let me know about any issues or rough edges 
> you encounter.
>
> --Mike
> mike@gmail.com 
>

-- 
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.


ANN qarth 0.1.0, an OAuth library

2014-07-24 Thread Mike Thvedt
Qarth is a simple interface to OAuth. Qarth's goal is to fix the problem of 
Ring/Compojure and/or Friend apps reinventing the wheel for OAuth.

Qarth features zero-effort Friend integration. The interactive auth flow in 
"friendless" Qarth is two or three lines of code plus configuration. All 
OAuth providers use the same interface, so that you can swap providers or 
use "multi" providers (i.e. login with Facebook or Github) with little 
additional effort.

Qarth comes with out-of-the-box support for Facebook, Github, Twitter, 
Google, and Yahoo!, and generic support for OAuth v2 and Scribe-Java.

https://github.com/mthvedt/qarth

Qarth is brand new, so please let me know about any issues or rough edges 
you encounter.

--Mike
mike.thv...@gmail.com

-- 
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.