Digest auth with Rack/Metal

Hi folks,

I’m trying to so some digest authentication in Rack via Metal. I’ve
found the:


Class, but I don’t have a great idea of how this fits into metal. It
seems like I should be able to do something similar to:

class MyAuth < Rack::Auth::Digest::MD5

def initialize(app, realm=nil)
  super(app, (realm or "Awesome Auth")) do |username,password|
    username == 'bob' and password == 'jimbo'


Any thoughts or experience using Rack::Auth::Digest::MD5? I think I
could just instantiate it on each request, but it’s built like a rack
application so I don’t see why that’s needed.

Thanks all,

Matthew B. :: 607 227 0871
Resume & Portfolio @ http://madhatted.com