You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be an issue with signing SAML requests now, when used in conjunction with the latest version of xmlsec. The xmlsec folks introduced a breaking change. Their change log states:
(API breaking change) Changed the key search to strict mode: only keys referenced by KeyInfo are used. To restore the old "lax" mode, set XMLSEC_KEYINFO_FLAGS_LAX_KEY_SEARCH flag on xmlSecKeyInfoCtx or use '--lax-key-search' option for XMLSec command line utility.
Out of the box, the current version of djangosaml2 tries to use xmlsec and doesn't pass the --lax-key-search option. I can only assume that KeyInfo is not populated either, hence usage of xmlsec generates a KEY-NOT-FOUND error.
One solution would be to populate KeyInfo (or if there is a way to do that, point me in a direction how to ensure that happens). Another would be to detect the version of xmlsec and add the flag to preserve backwards compatibility for folks.
The text was updated successfully, but these errors were encountered:
There appears to be an issue with signing SAML requests now, when used in conjunction with the latest version of xmlsec. The xmlsec folks introduced a breaking change. Their change log states:
(API breaking change) Changed the key search to strict mode: only keys referenced by KeyInfo are used. To restore the old "lax" mode, set XMLSEC_KEYINFO_FLAGS_LAX_KEY_SEARCH flag on xmlSecKeyInfoCtx or use '--lax-key-search' option for XMLSec command line utility.
Out of the box, the current version of djangosaml2 tries to use xmlsec and doesn't pass the --lax-key-search option. I can only assume that KeyInfo is not populated either, hence usage of xmlsec generates a KEY-NOT-FOUND error.
One solution would be to populate KeyInfo (or if there is a way to do that, point me in a direction how to ensure that happens). Another would be to detect the version of xmlsec and add the flag to preserve backwards compatibility for folks.
The text was updated successfully, but these errors were encountered: