A rather good 64-line OAuth 2 client implementation for Python has been open-sourced.
Source-code <https://github.com/demianbrecht/sanction> (announcement<https://groups.google.com/forum/#%21topic/comp.lang.python/1axveCwPK4M> ) This has been tested—and includes example code—with: - Facebook - Google - Foursquare https://github.com/demianbrecht/sanction/blob/master/example/server.py Please share your thoughts below, specify if you would like how to use it with web2py, e.g.: for the online web2py book. [Disclaimer: haven't spoken with Massimo yet] Thanks, Alec Taylor