Support for API keys
Am I correct in thinking there isn't currently an easy way of adding API keys (something like an MD5 hash, passed before a view will return anything, like google's maps API)?
I've added it myself, by creating a model that deals with the key creation, and then manually validating the key (taken from request.GET) and returning rc.FORBIDDEN if it isn't valid.
This approach works, however it adds some boilerplate code to every view that need not be there.
Maybe a decorator along the lines of @key_required would help this? With a generic key lookup to a custom keys table would be a good solution to this?
I'd be happy to write up a patch for this, but I want to make sure there isn't an easier way before I did.