Limit user access by HTTP method
When specifying the restrictions for a given path, it would be nice to be able to further limit the HTTP method(s) that can be executed on that path, maybe something like this:
auth.require = ( "/articles/" => ( "method" => "digest", "realm" => "Articles", "limit" => ( "GET" => ( "require" => "valid-user" ) "PUT|POST|DELETE" => ( "require" => "user=admin" ) ) ), )
I'd use this for securing web applications, but it might come in handy for securing WebDAV enabled directories so that specific users can view documents, but they cannot modify or remove them.
Updated by Anonymous about 14 years ago
I just thought I should add that this would be a useful feature to be added to mod_auth itself, not just mod_webdav.
I frequently create web applications that use PUT and DELETE, and I would like to limit who can perform what method. REST style web apps that make full use of the HTTP methods are becoming more common lately.
Also available in: Atom