An excellent tutorial on leveraging HTTP authentication in web-based applications REST based authentication