Method to call InitiateSSO with PartnerIdentityProviderConfiguration

We have several potential IdP’s, and don’t want them to be stored in a config, but rather have them in our database. We see the PartnerIdentityProviderConfiguration class, but do not see a signature of InitiateSSO (Or InitiateSLO for that matter) that takes this object. We need the properties occasionally, IE DisableDestinationCheck and ForceAuthn. Is there a method we can call into InitiateSSO with this object so that we can pass these properties or can they only be fetched from saml.config?

We don’t include SAML API methods that take SAML configuration objects as arguments.

The recommended approach for handling SAML configuration stored in a database is to implement the ISAMLConfigurationResolver interface. We call into this interface whenever we need specific configuration. Your implementation would retrieve the requested configuration from the database.

For more information, please refer to the “Implementing ISAMLConfigurationResolver” section of the Configuration Guide.

https://www.componentspace.com/Forums/9350/Configuration-Guide

[quote]
ComponentSpace - 9/16/2021
We don't include SAML API methods that take SAML configuration objects as arguments.

The recommended approach for handling SAML configuration stored in a database is to implement the ISAMLConfigurationResolver interface. We call into this interface whenever we need specific configuration. Your implementation would retrieve the requested configuration from the database.

For more information, please refer to the "Implementing ISAMLConfigurationResolver" section of the Configuration Guide.

https://www.componentspace.com/Forums/9350/Configuration-Guide
[/quote]

Oh I see, so we just build the SAML config object then internally the SAML application will use this object in lieu of a saml.config file. Thanks!

That’s correct. We actually use the ISAMLConfigurationResolver in all circumstances including when a saml.config file is used. There’s an inbuilt implementation of ISAMLConfigurationResolver that reads from the cached saml.config file. Your ISAMLConfigurationResolver would read from the custom database. The Configuration Guide I mentioned previously describes how to implement this interface and how to register your implementation.