I basically have the exact same question as this: Sending XML header with SimpleSamlPhp ...
I\'ve configured SimpleSamlPhp as a SAML Identity Provider.
SimpleSamlP