Basic Authentication handler for the JSON API, used for development and debugging purposes