string ApiTestController_IncommingConnectionAssigningId() { //return an ID to be assigned to the incoming connection //a common thing is to return "User.Identity.Name" return User.Identity.IsAuthenticated ? User.Identity.Name : string.Empty; }