The users have to be layer 2 adjacent to the MX and the MX acting as their default gateway. The MX tracks the users by their MAC address. When their is another device doing layer 3 routing the users still get the authentication prompt but the MX sees the MAC address of the layer 3 router instead. So the first person works, but the second person will appear to be already signed in.