Added dialog for authentication

Adds the ability to handle authentication requests.