Dear @Fchekh,
Welcome to the Wefugees Community and thank you for reaching out to us.
I am not sure if I understand your situation yet. In generel, the asylum case and the marriage procedure are not connected to eachother. People with "Aufenthaltsgestattung" (still in the asylum process) or with "Duldung" (after a negative decision on the asylum application" can also marry in Germany. We discussed this already a couple of times on this platform. You may want to check this link for more details.
Is it possible that the "Standesamt" (registry office) asked to validate or legalize your documents? This would also not be done by the Ausländerbehörde, I assume, but in the respective embassy, for instance.
Please don't hesitate to get back to us if you want to discuss your case further.
All the best,
Meike