The issue arises because both IDPs have the same entityID in the EntityDescriptor but different ID values within it. I am using Azure for this and the spring-security-saml2-core version 1.0.10.
I am creating a CachingMetadataManager bean with HTTPMetadataProvider, but it only adds one entry.
Comment From: jzheaux
Thanks for getting in touch, @BhargavRuparel3591! It feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that I and other people can find it) or add more detail if you feel this is a bug.