http autentication and restful_authentication


I've started the long task of adding an API to a project of mine.

Since I need to write a PHP library for it I will use for inspiration
the one for Basecamp(

However that library uses http authentication, and I have a setup with

Is there a way to make restful authentication accept users coming from
http auth?