There are multiple options but they are all based on webserver auth.
you could make a mysql database for instance, cherokee has a PAM module, but no matter what you do, it will be based on the webserver.
Basic and Digest authentication are the 2 most popular.
also, another option, if you're...