pysaml2 icon indicating copy to clipboard operation
pysaml2 copied to clipboard

Howto generate signed Response with desired namespaces (saml,samlp,ds, etc...)

Open danaru opened this issue 5 years ago • 6 comments

Hi, I'd like to use pysaml2 for IdP side implementation.

Code Version

v4.8.0

Expected Behavior

I would like to generate signed Response with saml2 namespaces (saml,saml2,ds ...)

Current Behavior

Signed Response generated with default namespaces (ns0,ns1) With unsigned version I've applied register_prefix on returned response and got Response with desired namespaces, however with signed version I'm getting signed xml string.

Possible Solution

To workaround this I've added prefix registration at sigver.py::signed_instance_factory Is there a way to do it on server.py level? without modifying inner modules?

Thanks

Steps to Reproduce

danaru avatar Oct 27 '19 10:10 danaru

The solution would be the following https://github.com/IdentityPython/pysaml2/pull/625

It should be merged soon, otherwise you can cherry-pick from my branch to your

peppelinux avatar Oct 27 '19 11:10 peppelinux

Otherwise, got It to work with my pysaml2 fork https://uniauth.readthedocs.io/en/latest/ Enjoy

peppelinux avatar Oct 27 '19 13:10 peppelinux

Thanks a lot

On Sun, Oct 27, 2019 at 3:05 PM Giuseppe De Marco [email protected] wrote:

Otherwise, got It to work with my pysaml2 fork https://uniauth.readthedocs.io/en/latest/ Enjoy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IdentityPython/pysaml2/issues/650?email_source=notifications&email_token=ABDWN36XXCCA7UJZS5OQ6K3QQV72DA5CNFSM4JFRALFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECK55XQ#issuecomment-546692830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDWN3756NVTPCTZHQQ36BDQQV72DANCNFSM4JFRALFA .

--

danaru avatar Oct 27 '19 15:10 danaru

Any update to this ? I am trying to do the same but its not working Fork of @peppelinux does not seem to exist either ?

JHoelting avatar Aug 23 '21 14:08 JHoelting

You find It here with some more things in https://github.com/peppelinux/pysaml2/tree/pplnx-7.0.1

peppelinux avatar Aug 23 '21 19:08 peppelinux