xml-declarationsustainsys-saml2

Enable xml declaration for SAML2 Requests with Sustainsys.Saml2


I'd like to enable xml declarations for requests gernerated with Sustainsys.Saml2.Mvc but so far didn't find a way to configure it.

I know declarations in XML1.0 are optional, but the IdP (that I have no control over) requires a declaration and sadly fixing/changing that is not an option.

Is there a way to enable xml declarations for Sustainsys.Saml2 besides forking and changing the source code?


Solution

  • This question got me to look up what the SAML spec says about declarations: nothing. But in most examples I've seen of SAML2 messages, there is no declaration. So I'd say it should be a compatibility setting that can be enabled in special cases.

    There is no support for it right now, but it can be added (a well-written PR will be accepted).

    There is now support for notifications, that can be used to add XML declarations.