These were the qedeshim, who served as priests to the Canaanite goddess Athirat. They were responsible for the upkeep of her temples, and also engaged in ritual temple prostitution, engaging in sex with the devotees of the goddess to achieve enhanced states of consciousness. (It is possible that several of the biblical texts of terror that are used to condemn sex between men were in fact referring specifically to these temple prostitutes – and so were directed at idolatry, rather than at homoerotic activity itself).
Connor notes an interesting connection between the multicolour garments of the qedishim and Joseph’s “coat of many colours”, which, at least based on Andrew Lloyd Webber’s portrayal, was “fabulous”. Although Connor’s mission is not to “out” Joseph, he presents other clues which make one wonder, such as the fact that Potiphar, the man who bought Joseph from his brothers and brought him to Egypt as his servant, was actually a eunuch priest of a pagan goddess. Furthermore, the interpretation of dreams was one of the qualities for which the qedishim were known; and indeed, biblical writings reflect that prophetic dreams were commonplace with Joseph.
This needs some fact-checking: most obviously, Potiphar did not buy Joseph directly from his brothers, but from a band of Ishmaelites who were the original purchasers. It is certainly true though that male temple prostitution was commonplace in the Mediterranean world, including in the land of Canaan, and that in cultures all around the world, men who were attracted to men or to female gender roles were often regarded as possessing special spiritual gifts – including the prophetic interpretation of dreams.
David the Prophet and Jonathan, His Lover (Queer Saints and Martyrs)
Daniel in the Lion’s Den (Queer Saints and Martyrs)
Three Young Men in the Burning Fiery Furnace (Queer Saints and Martyrs)
Ruth and Naomi (Queer Saints and Martyrs)
The Queer Lesson of Nehemiah: “Rebuild God’s Church” (Queer Saints and Martyrs)