Fixed authenticated handling for unsecure connections