Added basic HTTP authentication for API stub.