[racket] Browser module for OAuth use?

From: Ryan Culpepper (ryan at cs.utah.edu)
Date: Mon Jan 23 13:10:22 EST 2012

I have some code that does this for OAuth2 (but so far only the subset 
that Google implements, which is probably different from the subset 
Facebook uses). You can see the code here:


The part that implements the web-browser interaction is in 
private/oauth2-web.rkt. It starts a little web-server that catches the 
OAuth2 server's redirect to localhost.

I plan to make that a PLaneT package eventually, but not soon, so feel 
free to borrow the code.


On 01/18/2012 05:29 PM, Jonathan Schuster wrote:
> I'm starting to write some Racket bindings for the Facebook API, and I'm
> trying to get the authentication up and running. They use an OAuth
> system that, for desktop clients, requires that your app open a browser
> window to allow the user to login. Once they've done that, your app is
> supposed to detect a navigation within the browser and extract the
> access token out of the new URL so that it can be used in all subsequent
> Facebook API calls.
> Does anyone know if there's some sort of browser module in Racket that
> would fulfill my needs? Specifically, it should send some sort of
> signal/event to my program every time it navigates to a new page, and
> should provide the URL on each navigation. I found the launch-browser
> project on PLaneT
> (http://planet.plt-scheme.org/display.ss?package=launch-browser.plt&owner=oesterholt
> <http://planet.plt-scheme.org/display.ss?package=launch-browser.plt&owner=oesterholt>),
> but that only takes care of starting a browser, not tracking it. Thoughts?
> Jonathan

Posted on the users mailing list.