Merge lp:~roadmr/django-saml2-idp/fix-bogus-subject into lp:~ubuntuone-pqm-team/django-saml2-idp/stable

Proposed by Daniel Manrique
Status: Merged
Merged at revision: 69
Proposed branch: lp:~roadmr/django-saml2-idp/fix-bogus-subject
Merge into: lp:~ubuntuone-pqm-team/django-saml2-idp/stable
Diff against target: 11 lines (+0/-1)
1 file modified
idptest/saml2idp/xml_templates.py (+0/-1)
To merge this branch: bzr merge lp:~roadmr/django-saml2-idp/fix-bogus-subject
Reviewer Review Type Date Requested Status
Ricardo Kirkner (community) Approve
Review via email: mp+333287@code.launchpad.net

Commit message

Remove a stray, bogus $SUBJECT substitution that was generating invalid SAML assertions.

This resulted in errors like this from SPs which validate the SAML responses:

Errors validating the metadata:

Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeStatement': Character content other than whitespace is not allowed because the content type is 'element-only'.
Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd

I tried/am trying to run the tests for this project but they appear to be rotten. This is tested in the next layer in https://code.launchpad.net/~roadmr/canonical-identity-provider/validate-saml-xml/+merge/333276, which will actually not pass until it references django-saml2-idp with this fix merged.

Description of the change

Remove a stray, bogus $SUBJECT substitution that was generating invalid SAML assertions.

This resulted in errors like this from SPs which validate the SAML responses:

Errors validating the metadata:

Element '{urn:oasis:names:tc:SAML:2.0:assertion}AttributeStatement': Character content other than whitespace is not allowed because the content type is 'element-only'.
Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd

I tried/am trying to run the tests for this project but they appear to be rotten. This is tested in the next layer in https://code.launchpad.net/~roadmr/canonical-identity-provider/validate-saml-xml/+merge/333276, which will actually not pass until it references django-saml2-idp with this fix merged.

To post a comment you must log in.
Revision history for this message
Ricardo Kirkner (ricardokirkner) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'idptest/saml2idp/xml_templates.py'
2--- idptest/saml2idp/xml_templates.py 2012-06-27 20:26:38 +0000
3+++ idptest/saml2idp/xml_templates.py 2017-11-06 21:25:24 +0000
4@@ -51,7 +51,6 @@
5
6 ATTRIBUTE_STATEMENT = (
7 '<saml:AttributeStatement>'
8- '${SUBJECT}'
9 '${ATTRIBUTES}'
10 '</saml:AttributeStatement>'
11 )

Subscribers

People subscribed via source and target branches