I just opened the door enough for them to fit.
I put the inboard end in its bracket, opened the door and held it with one hand, and got the strut in the door bracket with the other hand.
A third hand would help, as would a correct length broom stick.