The BSA has testified in court under oath that gays and atheists were not allowed.

What's more, the BSA dishonestly chartered units to public schools, and actually expected these public schools to violate the first amendment rights of students and exclude atheists.  This wasn't stopped until the ACLU threatened to sue in 2005.