Added basic authentication support