C
C#2y ago
Emberfire

❔ Set up Sustainsys.Saml2 configuration in Web.config programmatically

I'm trying to set up Sustainsys' Saml2 integration in an ASP.NET MVC 4 application. However, I need the identity provider options (such as Entity ID, sign-on URL, logout URL, signing certificate, service certificate and federation metadata) to be sourced from a UI I'm also writing. That means these options need to be edited on the fly. I've read into the component's documentation, however I don't see any way to programmatically set these options, except with Owin (which unfortunately won't work for my case). I tried manually creating configuration sections using Sustainsys' own classes, however much of the properties are either protected or outright lack setters. I also tried creating my own configuration sections which would override Sustainsys' ones, but during runtime the XML sections always get deserialized into Sustainsys' classes. I could always edit the Web.config as a plain XML file, but I feel this would not be an elegant solution. Is there any way to set (and subsequently change) the <sustainsys.saml2> tag and everything in it programmatically?
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server