Also, I'd expect that you could pass in the STS endpoint as a parameter here too.