Fixed basic access authentication

Fixed basic access authentication using custom realm
Merge pull request #229 from asessa/patch-5

Fixed basic access authentication