Using the info from my previous post, I wrote a small Sinatra plugin that works with both Clearance and Authlogic.
Throw the file above in
lib/sinatra_authentication.rb. Then, your metal,
app/metals/api.rb would look something like this:
Authlogic doesn’t have an
authenticate method, so I added this to
Hope it helps someone else.