Is it possible to set IdentityProvider options (EntityId, MetadataLocation) for Saml2 outside the Startup.cs class in an ASP.NET Core application using the Sustainsys.Saml2 library?
In my scenario, different customers will require different settings, so I will need to change the settings at runtime rather than application start.
Saml2Options.SPOptions.EntityId
orIdentityProviders
to add newIdentityProvider
? ForSaml2Options
, you could access it byIOptions<Saml2Options> options
, but forSaml2Options.SPOptions.EntityId
, it will not be able to edit if you have setsaml2PSecurityTokenHandler
. - Edward