Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing Response, Issues with InclusiveNamespaces #211

Open
tusharvikky opened this issue Jun 12, 2020 · 4 comments
Open

Signing Response, Issues with InclusiveNamespaces #211

tusharvikky opened this issue Jun 12, 2020 · 4 comments

Comments

@tusharvikky
Copy link

Hello,

I have been trying to sign saml Response for SSO implementation.
I was able to sign, however, I;m stuck with adding InclusiveNamespaces Tag with PrefixList="#default code ds kind rw saml samlp typens".

Following is my ReferenceList code.

$objXMLSecDSig->addReferenceList(array($firstassertionroot), XMLSecurityDSig::SHA1,
			array('http://www.w3.org/2000/09/xmldsig#enveloped-signature', XMLSecurityDSig::EXC_C14N),
			array('id_name' => 'ResponseID'));

Any help regarding how I can get the following:

<Transforms>
                    <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                    <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                        <InclusiveNamespaces PrefixList="#default code ds kind rw saml samlp typens"
                            xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" />
                        </Transform>
                    </Transforms>

Currently, this is what I have been getting:

<ds:Transforms>
                <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
            </ds:Transforms>
@tvdijen
Copy link
Contributor

tvdijen commented Jun 12, 2020

Why reinvent the wheel? Have you considered using simplesamlphp/saml2 ?

@tusharvikky
Copy link
Author

tusharvikky commented Jun 12, 2020 via email

@tusharvikky
Copy link
Author

@robrichards Any documentation on how we can set the above InclusiveNamespaces tag?

Any help is appreciated.

@robrichards
Copy link
Owner

Setting this is not currently supported in the library. I may get around to implementing it but in the meantime PRs are also welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants