how to handle basic authentication