Added basic auth to api