Horde_Oauth released

As promised in my what's-coming summary, initial Oauth support has been added to Horde. The 0.1.0 release is a standalone PEAR package installable from pear.horde.org; the only Horde-related dependency is the horde/Http_Client package. You can install both easily:

pear install horde/oauth-beta

PHP 5 is required (5.2+ is recommended, earlier is your own ball of wax), and openssl is needed to use the RSA-SHA1 signature method (required if you want to use this with Google's Data APIs; other sites support HMAC-SHA1, and the package includes both along with Plaintext for completeness. The code is based on the example OAuth.net PHP code, but is refactored, split into multiple files, packaged, made Horde-friendly, etc. It is released under a BSD license.

Still to come:

  • Integrated consumer support for the Horde UI, with a Prefs container for managing the access tokens that a user has for external sites, a callback script, and a UI that knows how to request access to external sites.
  • OAuth server support, both standalone in the package to whatever extent makes sense, and integrated into Horde.
  • A UI for managing access tokens granted by Horde users to third parties.