How can I specify which SP to Initiate SSO from?

I have 3 service providers in the saml config.
How can I specify which SP to Initiate SSO from?


Are you the IdP and you have three partner SPs configured in your saml.config?
Assuming so, the SAMLServiceProvider.InitiateSSO API includes a partnerSP parameter that specifies the partner SP.
This parameter must match one of the Name values.


SAMLIdentityProvider.InitiateSSO(
Response,
userName,
attributes,
targetUrl,
partnerSP);


[quote]
ComponentSpace - 3/5/2019
Are you the IdP and you have three partner SPs configured in your saml.config?
Assuming so, the SAMLServiceProvider.InitiateSSO API includes a partnerSP parameter that specifies the partner SP.
This parameter must match one of the Name values.


SAMLIdentityProvider.InitiateSSO(
Response,
userName,
attributes,
targetUrl,
partnerSP);


[/quote]

No i'm the SP. And I have 3 SP's each one should connect to IDP.
basically my website have different service each one should connect to different IDP, so I have multiple SP that I need to initiate SSO from.


I assume then that you’re using our multi-tenanted support and have three SAML configurations in the one saml.config file.



























Each tenant has its own separate SAML configuration.
Prior to calling any SAML API you need to specify which configuration to use by setting the SAMLController.ConfigurationID property.

For example:


SAMLController.ConfigurationID = “tenant1”;
SAMLServiceProvider.ReceiveSSO(…);