Welcome to the Wefugees Community and thank you for reaching out to us.
In Germany, the marriage is in general possible with basically any residence "status" (i.e. during the asylum procedure, as recognised refugees or even with holding the temporary suspension of the deportation/"Duldung"). The actual challenge is usually to provide all the required documents for the process. Wefugees published a blog on this topic. Please follow this link for more information and a list of regularly required documents for the marriage.
In any case, please also don't hesitate to get back to us if you have more specific or other questions.
All the best,