Well, its a little tricky. Those pins don't fit anything I had laying around. They are too big for a red wire splice and too small for a blue. I tried a few other ideas but did not like any of them. The first one I did I took the end cap off, unsoldered the pins and extended the wires out through where the pins were.
Then used wire nuts.
BTW, small wire nuts did not work well on the pins either. There might be a size that would, but I was afraid that the pin would twist in the plastic if I got it too tight.
Also, if you solder to the pins, remember they are embedded in plastic and have small wires soldered on them on the inside. So don't go overboard with the amount or length of heat.
Undoubtedly the best way would be a pair of tombstones mounted to something the right distance apart. One tombstone on one end will not work because the light will just slide out of the end. However, if you are using a bulb with both power hookups on the same end, there is no reason some kind of stop could not be rigged on the other end to keep the bulb from sliding out. Those pins are dead on the ones I have.
I have seen tombstones with metal tabs that mount with a screw. So that would work for the power end. Making sure that the two connections are split, of course.
Heck, especially if you were mounting the tombstone on wood, you could probably glue them on with a good glue that bonded to the wood and hardened over the plastic.
Bear in mind, when I was doing all this, I was several miles out in a swamp and only had what stuff I had laying around. I usually take several types of equipment with me to fix stuff, so I had good soldering equipment and Multicore rosin core solder.
With access to more time and a good hardware/electrical store, I'm sure that a better job could be done.
There are various types of conduit/pipe clamps that are pretty much the right size for holding the light stationary without crushing it. I used the ones that look like a "C" with a single screw mount tab.
And, with all the LEDs facing the same way on the ones I had, you can aim the light to a large degree.
Either towards where you want the most light, or if you have a really white ceiling, you could aim them up for a more diffuse light effect.
These are the ones I used, but don't go by the size. I don't remember what size I used. It was a few years and a major hurricane ago. I do think I may have had to spread them a little.
https://www.lowes.com/pd/Sigma-Elec...-Tubing-Compatible-Conduit-Fitting/1000152581
These would have worked also. Again not sure of the size.
https://www.lowes.com/pd/CARLON-1-i...Conduit-Compatible-Conduit-Fitting/1001352510
Two other things:
First, the correct name for the tombstone you need is a non-shunted type. As you can see here, they are cheap and plentiful.
https://www.amazon.com/fluorescent-light-tombstone/s?k=fluorescent+light+tombstone
Second, some of the bulbs I used had the end cap able to rotate about 90 degrees, so you could still aim the bulb after it was in the tombstone.
Have fun, if you come up with a good way be sure and post the details and some pics. I still have some dark places I need to illuminate.