Updated adaptor to authenticate on connect.