building OAuth REST API with Lift?

255 views
Skip to first unread message

Ryan

unread,
Mar 23, 2011, 9:29:49 PM3/23/11
to Lift, hyok...@samsung.com
Hello Everyone,

We're going to use Lift as a framework to build RESTful APIs. For the
authentication, OAuth will be used.
I know Lift supports OAuth for server side contributed by Foursquare,
but I couldn't find any manual/guide/tutorial/example, yet.

Did I missed something or there wasn't?

Best,
Hyok

Timothy Perrett

unread,
Mar 24, 2011, 8:08:39 AM3/24/11
to lif...@googlegroups.com, Ryan
Currently you'll have to look at the source code - there isnt any documentation on that per-say. 

Thanks, Tim

Maarten Koopmans

unread,
Mar 24, 2011, 9:00:19 AM3/24/11
to lif...@googlegroups.com
And while you look at it, be a hero and make a page in the wiki!

On Thu, Mar 24, 2011 at 1:08 PM, Timothy Perrett <tim...@getintheloop.eu> wrote:
Currently you'll have to look at the source code - there isnt any documentation on that per-say. 

Thanks, Tim

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

David Pollak

unread,
Mar 24, 2011, 9:18:22 AM3/24/11
to lif...@googlegroups.com
On Thu, Mar 24, 2011 at 6:00 AM, Maarten Koopmans <maarten....@gmail.com> wrote:
And while you look at it, be a hero and make a page in the wiki!

There are plenty of thanks and maybe a beer or two for the person that writes that page.
 


On Thu, Mar 24, 2011 at 1:08 PM, Timothy Perrett <tim...@getintheloop.eu> wrote:
Currently you'll have to look at the source code - there isnt any documentation on that per-say. 

Thanks, Tim

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



--
Lift, the simply functional web framework http://liftweb.net

Maarten Koopmans

unread,
Mar 24, 2011, 2:52:21 PM3/24/11
to lif...@googlegroups.com
Three beers.

On Thursday, March 24, 2011, David Pollak <feeder.of...@gmail.com> wrote:
>
>
> On Thu, Mar 24, 2011 at 6:00 AM, Maarten Koopmans <maarten....@gmail.com> wrote:
>
> And while you look at it, be a hero and make a page in the wiki!
> There are plenty of thanks and maybe a beer or two for the person that writes that page.
>
>
>
> On Thu, Mar 24, 2011 at 1:08 PM, Timothy Perrett <tim...@getintheloop.eu> wrote:
> Currently you'll have to look at the source code - there isnt any documentation on that per-say.
>
>
> Thanks, Tim
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
> --

> Lift, the simply functional web framework http://liftweb.netSimply Lift http://simply.liftweb.net

Hyok S. Choi

unread,
Apr 9, 2011, 12:39:35 AM4/9/11
to lif...@googlegroups.com, Maarten Koopmans, hyok...@samsung.com
As I've collected, at least three beers are pending for the OAuth, I've looked on it.

I can say that the OAuth module which is merged into Lift tree is not used for Foursquare service as is: I've found several critical bugs in the current OAuth module code in Lift. Actually it seems that it implements partial functions needed for OAuth server.

I've rewritten and expanded at least a few parts of the OAuth module and currently I've made initial working version of the OAuth/xAuth server. (I've tested with oauth client javascript implements and Netflix OAuth test page.)
Actually, I've tried to implement a quick example with ProtoUser, but found that the dynamic redirection after ProtoUser login is not working. (due to the session life cycle, Redirect SessionVar in ProtoUser code is not available after login)

It is based on "OAuth 1.0 core" as many clients are based on it and could be used for OAuth 1.0a(final) with uncommenting a few lines.

Still interested?

Best,
Hyok
HYOK S. CHOI
UCX PL / Senior Engineer
Conv. Service Lab, Digital Media & Communication R&D Center
Samsung Electronics Co.,Ltd.
tel: +82-31-279-7959  fax: +82-31-200-3427
e-mail: hyok...@samsung.com
[Linux ARM noMMU/MPU Kernel Maintainer] http://opensrc.sec.samsung.com

Maarten Koopmans

unread,
Apr 10, 2011, 4:39:41 PM4/10/11
to Hyok S. Choi, lif...@googlegroups.com, hyok...@samsung.com
Of course, we double the beers if it becomes a documented, working,
Lift module! Or send you something stronger :-)

Peter Robinett

unread,
Apr 11, 2011, 11:15:42 AM4/11/11
to lif...@googlegroups.com
I will also contribute a beverage of the author's choice. ;-)

I actually will be working on an OAuth 2.0 REST API for a Lift app over the next few weeks. Any tips or places to start? Naturally I will try to contribute back as much as possible.

Peter

David Pollak

unread,
Apr 13, 2011, 12:22:41 AM4/13/11
to lif...@googlegroups.com
How about making your OAuth 2.0 stuff part of the Lift distribution and we can deprecate the current OAuth stuff?

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Peter Robinett

unread,
Apr 14, 2011, 11:08:37 AM4/14/11
to lif...@googlegroups.com
I'll see what my client thinks. It would definitely be a nice contribution.

Peter

Maarten Koopmans

unread,
Apr 17, 2011, 1:42:37 AM4/17/11
to Hyok S. Choi, lif...@googlegroups.com, hyok...@samsung.com
Of course, we double the beers if it becomes a documented, working,
Lift module! Or send you something stronger :-)

On Saturday, April 9, 2011, Hyok S. Choi <hyok...@gmail.com> wrote:

Hyok S. Choi

unread,
Apr 18, 2011, 5:51:27 AM4/18/11
to lif...@googlegroups.com
Hmm,
First, OAuth 2.0 relays heavily on SSL and not finalized, yet.
Second, most of current client implementation is based on 1.0 core or 1.0a.

Maybe we could work on OAuth 1.0 server first and OAuth 2.0 in near future?

Peter Robinett

unread,
Apr 18, 2011, 12:05:40 PM4/18/11
to lif...@googlegroups.com
It's good enough to Facebook to use, so I figure it's good enough for me. ;-) http://developers.facebook.com/docs/authentication/

Peter

Alexandre Russel

unread,
Dec 12, 2012, 2:18:57 PM12/12/12
to lif...@googlegroups.com
Hi, 

have anything been done on the oauth 1 module ? either code or documentation (I've got the beer ready in my fridge)

Alex

Diego Medina

unread,
Dec 12, 2012, 3:19:54 PM12/12/12
to Lift
If you are up to the task, we opened up the modules to external contributions,
https://github.com/organizations/liftmodules
so you could go ahead and submit a pull request with any fix it needs.

Thanks,

Diego
> --
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code
>
>
>



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com
Reply all
Reply to author
Forward
0 new messages