Added basic authentication for the Magister API