django-saml2-auth icon indicating copy to clipboard operation
django-saml2-auth copied to clipboard

How can we pass own certificate for decode, the signed assertion.

Open karun-dhir opened this issue 7 years ago • 5 comments

I just want to know where to pass the .cert file or public key in your plugin.

karun-dhir avatar Jun 07 '18 09:06 karun-dhir

Does this plugin support signed SAML responses? What does this line mean?

https://github.com/fangli/django-saml2-auth/blob/master/django_saml2_auth/views.py#L107

nqthqn avatar Jun 19 '19 22:06 nqthqn

When a user goes to the signin endpoint, they should be redirected to a SAML IdP with a payload. This option indicates that the payload should not be signed.

Per the underlying pysaml2 docs, a keyfile is provided by including a key_file (private) and cert_file (public) entry at the top level of the config. Since django_saml2_auth doesn't offer a way to populate this entry, there's no way to provide a file for signature.

ambsw-technology avatar Sep 26 '19 22:09 ambsw-technology

It should be possible, however, to clone the source code and modify it to accept a key_file and a cert_file. I'm integrating to an IdP (not run by my own organization) which seems to require a certificate. Anyone who has experience with this?

agger-magenta avatar Nov 06 '19 16:11 agger-magenta

Can the signed assertion mentioned in this thread cause this? This module require that the response is signed, but don't give the option to set the certificates to sign, wtf.

ghost avatar Dec 09 '19 15:12 ghost

Yes. This module is "opinionated" insofar as it only supports the simplest use cases. I refactored the project to support modification using custom plugins (for example, custom metadata and signout redirection). This makes it easier to add functionality without having to incorporate the code into the base project.

claytondaley avatar Dec 09 '19 22:12 claytondaley