Read dynamic PartnerIdentityProvider from saml.config file

How to read the dynamic PartnerIdentityProvider from saml.config file using ASP.Net based on some drop down value selection as we are keeping multiple PartnerIdentityProvider with single ServiceProvider in saml.config file?

You can access the SAML configuration using the SAMLController.Configuration property.
For example:


foreach (var partnerIdentityProviderConfigurations in
SAMLController.Configuration.PartnerIdentityProviderConfigurations)
{
var name = partnerIdentityProviderConfigurations.Name;
}