You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have configured an instance of IdentityServer4 to act as a SP using this library. I am able to successfully use multiple IDPs by adding multiple Schemes for SP initiated SSO.
Here is the code I use for this which works well but it creates multiple instances of the SP.
//add IDPs at startup - saml providers comes from DB
foreach (var samlProvider in samlProviders)
{
authenticationBuilder.AddSaml2(samlProvider.Scheme, samlProvider.Name, options =>
{
var entityId = new EntityId(my.EntityId);
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
options.SPOptions.EntityId = entityId;
options.SPOptions.ModulePath = samlProvider.ModulePath;
if (samlProvider.MinimumSigningAlgorithm != null)
options.SPOptions.MinIncomingSigningAlgorithm = samlProvider.MinimumSigningAlgorithm;
var idp = new IdentityProvider(entityId, options.SPOptions)
{
Binding = Saml2BindingType.HttpRedirect,
LoadMetadata = true
};
if (samlProvider.MetaDataLocation != null)
idp.MetadataLocation = samlProvider.MetaDataLocation;
options.IdentityProviders.Add(idp);
});
}
Is it possible to use the same SP, include multiple IDPs and still redirect the user to the correct IDP based on schemes, or do you have to do custom redirects?
Is it possible to programmatically add IDPs outside of startup using either method?
Is it possible to access the SPOptions for schemes via an Injected Service?
Thanks in advance for any assistance!
The text was updated successfully, but these errors were encountered:
@gitdrk , Mutiple instances of Identityserver meaning different urls?
did you find a way to create single instance of Identityserver with Mutiple saml IDPs?
I have configured an instance of IdentityServer4 to act as a SP using this library. I am able to successfully use multiple IDPs by adding multiple Schemes for SP initiated SSO.
Here is the code I use for this which works well but it creates multiple instances of the SP.
Is it possible to use the same SP, include multiple IDPs and still redirect the user to the correct IDP based on schemes, or do you have to do custom redirects?
Is it possible to programmatically add IDPs outside of startup using either method?
Is it possible to access the SPOptions for schemes via an Injected Service?
Thanks in advance for any assistance!
The text was updated successfully, but these errors were encountered: