Thank you for sharing your question with the Wefugee Community!
In general, you can marry as an asylum seeker here in Germany. Similar threads were opened on this platform already. Maybe you can check for example those: https://www.wefugees.de/803808/boyfriend-germany-greece-thinking-getting-married-possible or https://www.wefugees.de/102274/asylum-seeker-want-married-australian-girlfriend-germany.
I hope you will find some useful information there.
All the best,