Merge "Fix signed_saml2_assertion.xml tests fixture"
This commit is contained in:
commit
481773994f
@ -156,9 +156,7 @@ class SAMLGenerator(object):
|
||||
def _create_attribute_statement(self, user, roles, project):
|
||||
"""Create an object that represents a SAML AttributeStatement.
|
||||
|
||||
<ns0:AttributeStatement
|
||||
xmlns:ns0="urn:oasis:names:tc:SAML:2.0:assertion"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<ns0:AttributeStatement>
|
||||
<ns0:Attribute Name="openstack_user">
|
||||
<ns0:AttributeValue
|
||||
xsi:type="xs:string">test_user</ns0:AttributeValue>
|
||||
@ -169,7 +167,7 @@ class SAMLGenerator(object):
|
||||
<ns0:AttributeValue
|
||||
xsi:type="xs:string">member</ns0:AttributeValue>
|
||||
</ns0:Attribute>
|
||||
<ns0:Attribute Name="openstack_projects">
|
||||
<ns0:Attribute Name="openstack_project">
|
||||
<ns0:AttributeValue
|
||||
xsi:type="xs:string">development</ns0:AttributeValue>
|
||||
</ns0:Attribute>
|
||||
|
@ -49,14 +49,14 @@ UHeBXxQq/GmfBv3l+V5ObQ+EHKnyDodLHCk=</ns1:X509Certificate>
|
||||
</ns0:AuthnContext>
|
||||
</ns0:AuthnStatement>
|
||||
<ns0:AttributeStatement>
|
||||
<ns0:Attribute FriendlyName="keystone_user" Name="user" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:Attribute Name="openstack_user" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:AttributeValue xsi:type="xs:string">test_user</ns0:AttributeValue>
|
||||
</ns0:Attribute>
|
||||
<ns0:Attribute FriendlyName="keystone_roles" Name="roles" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:Attribute Name="openstack_roles" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:AttributeValue xsi:type="xs:string">admin</ns0:AttributeValue>
|
||||
<ns0:AttributeValue xsi:type="xs:string">member</ns0:AttributeValue>
|
||||
</ns0:Attribute>
|
||||
<ns0:Attribute FriendlyName="keystone_project" Name="project" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:Attribute Name="openstack_project" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
|
||||
<ns0:AttributeValue xsi:type="xs:string">development</ns0:AttributeValue>
|
||||
</ns0:Attribute>
|
||||
</ns0:AttributeStatement>
|
||||
|
Loading…
Reference in New Issue
Block a user