[java-identity-provider] branch master updated: IDP-701 Add configuration points for CAS metadata indices.

Marvin S. Addison marvin.addison at gmail.com
Thu Jun 28 15:04:25 EDT 2018


This is an automated email from the git hooks/post-receive script.

serac pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=ac826f537179fdfe294ea8768a47dd1b21994200

The following commit(s) were added to refs/heads/master by this push:
       new  ac826f5   IDP-701 Add configuration points for CAS metadata indices.
ac826f5 is described below

commit ac826f537179fdfe294ea8768a47dd1b21994200
Author: Marvin S. Addison <serac at vt.edu>
AuthorDate: Thu Jun 28 15:02:48 2018 -0400

    IDP-701 Add configuration points for CAS metadata indices.
    
    Indexing by endpoint is required, so add beans in system to config to
    facilitate referencing them via indexesRef in metadata providers.
---
 idp-conf/src/main/resources/conf/metadata-providers.xml | 17 ++++++++++++++---
 .../main/resources/system/conf/cas-protocol-system.xml  | 12 +++++++++++-
 2 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/idp-conf/src/main/resources/conf/metadata-providers.xml b/idp-conf/src/main/resources/conf/metadata-providers.xml
index facc296..d723005 100644
--- a/idp-conf/src/main/resources/conf/metadata-providers.xml
+++ b/idp-conf/src/main/resources/conf/metadata-providers.xml
@@ -10,7 +10,7 @@
                         urn:mace:shibboleth:2.0:resource http://shibboleth.net/schema/idp/shibboleth-resource.xsd 
                         urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd
                         urn:oasis:names:tc:SAML:2.0:metadata http://docs.oasis-open.org/security/saml/v2.0/saml-schema-metadata-2.0.xsd">
-                        
+
     <!-- ========================================================================================== -->
     <!--                             Metadata Configuration                                         -->
     <!--                                                                                            -->
@@ -62,6 +62,17 @@
     <!--
     <MetadataProvider id="LocalMetadata"  xsi:type="FilesystemMetadataProvider" metadataFile="PATH_TO_YOUR_METADATA"/>
     -->
-          
-    
+
+
+    <!--
+    Example CAS metadata source.
+    -->
+
+    <!--
+    <MetadataProvider id="CasMetadata"
+                      xsi:type="FilesystemMetadataProvider"
+                      metadataFile="PATH_TO_YOUR_METADATA"
+                      indexesRef="shibboleth.CASMetadataIndices" />
+    -->
+
 </MetadataProvider>
diff --git a/idp-conf/src/main/resources/system/conf/cas-protocol-system.xml b/idp-conf/src/main/resources/system/conf/cas-protocol-system.xml
index f8ddc30..a3661db 100644
--- a/idp-conf/src/main/resources/system/conf/cas-protocol-system.xml
+++ b/idp-conf/src/main/resources/system/conf/cas-protocol-system.xml
@@ -51,6 +51,16 @@
         <ref bean="shibboleth.CASServiceRegistry" />
     </util:list>
 
+    <bean id="shibboleth.CASMetadataIndex" class="org.opensaml.saml.metadata.resolver.index.impl.EndpointMetadataIndex">
+        <constructor-arg name="endpointPredicate">
+            <bean class="net.shibboleth.idp.cas.service.impl.MetadataServiceRegistry.LoginEndpointPredicate" />
+        </constructor-arg>
+    </bean>
+
+    <util:set id="shibboleth.CASMetadataIndices">
+        <ref bean="shibboleth.CASMetadataIndex" />
+    </util:set>
+
     <import resource="../../conf/cas-protocol.xml" />
 
-</beans>
\ No newline at end of file
+</beans>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list