Multi-tenant support - when to call ISamlProvider.SetConfigurationIDAsync()?


I’m updating our application to support multiple SAML configurations and I’m not clear when to call ISamlProvider.SetConfigurationIDAsync(). The application uses SP-initiated SSO. Should SetConfigurationIDAsync() be called prior to any ISamlServiceProvider call or just once before the call to ISamlServiceProvider.InitiateSsoAsync()?


Our recommendation is to call it before any ISamlServiceProvider call. However, when you call SetConfigurationIDAsync, we store the ID in the SAML session so it should be available even if it’s only set once.

Okay, that clears everything up for me. Thanks for the quick reply.

You’re welcome.