Adding basic auth to the REST Api