Some wiring may vary however this is the most common wiring scenario for a 120 volt light fixture.
Wiring porch light fixture.
Caulk around the base.
Exterior light fixtures do not require gfci protection.
Splice the white lead to white wire and black to black.
However it s likely that the light fixture was mounted in the middle of a stud cavity which makes mounting a box that can support the weight of the fixture more difficult.
Low voltage lighting systems must be listed by an approved testing agency as an entire system or assembled from individual components that are listed.
Wire the switch install a bulb and test.
Several types of remodeling boxes can do the job but we recommend a 2 x 3 in metal remodeling box that s 2 1 2 in deep for fixtures up to about 6 lbs.
Support the fixture with a wire coat hanger.
Low voltage light fixtures luminaires must be no closer than 5 feet away from the outside walls of pools spas or hot tubs.
Make sure the power source is turned off.
Electrical wiring at the light fixture is typically made by connecting together the wires of the same color which are commonly black white and the bare ground wire or green ground wire.