Doing it legally varies from car to car. The most common method is to have a tube with a floor plate projecting down fron the lower door bar, pressed against the floor. Some cars are nice enough to have drain plugs you can utilize if you want to register the jack.

And creative thinking can come up with lots of other methods.