Implement HTTP Basic Auth authorization function