Merge "Add a PAOS endpoint to support ECP"

This commit is contained in:
Zuul 2019-12-20 10:03:04 +00:00 committed by Gerrit Code Review
commit 5ec1bc10f9
2 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,10 @@ class KeystoneSAMLMellonConfigurationAdapter(
def sp_post_response_path(self): def sp_post_response_path(self):
return '{}/postResponse'.format(self.mellon_endpoint_path) return '{}/postResponse'.format(self.mellon_endpoint_path)
@property
def sp_paos_response_path(self):
return '{}/paosResponse'.format(self.mellon_endpoint_path)
@property @property
def sp_logout_path(self): def sp_logout_path(self):
return '{}/logout'.format(self.mellon_endpoint_path) return '{}/logout'.format(self.mellon_endpoint_path)

View File

@ -15,9 +15,11 @@
</KeyDescriptor> </KeyDescriptor>
{% endif %} {% endif %}
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_logout_path }}"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_logout_path }}"/>
<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_logout_path }}"/>
{% for format in options.supported_nameid_formats -%} {% for format in options.supported_nameid_formats -%}
<NameIDFormat>{{ format }}</NameIDFormat> <NameIDFormat>{{ format }}</NameIDFormat>
{% endfor -%} {% endfor -%}
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_post_response_path }}" isDefault="true" index="0"/> <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_post_response_path }}" isDefault="true" index="0"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" Location="{{ keystone_fid_service_provider.base_url }}{{ options.sp_paos_response_path }}" index="1"/>
</SPSSODescriptor> </SPSSODescriptor>
</EntityDescriptor> </EntityDescriptor>