You should wire a lead with a plug to the terminal block in the light. And don’t forget that you should ground it. Generally speaking, there will be a ground lug on the housing. If there isn’t one, connect the terminal to the ground wire.
I learned something about electromagnetic photocell street lights, and now I want to know how to recognize thermal photocontrol street lights.