It is an issue of dispute among scholars. The most authentic opinion is that it is permissible providing that the sperm is from the husband and the egg is from the wife, the doctor and the clinic are trustworthy to ensure that the sperms and eggs are not mixed with other people, and that the treating doctor is a female to avoid exposing the private parts of the wife to a male.