Automatically authenticate when connection connects the socket and creadentials are provided