Changeset 5323


Ignore:
Timestamp:
06/04/14 14:21:18 (10 years ago)
Author:
Twan Goosen
Message:

Added shibboleth support via SHHAA

Location:
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry
Files:
1 added
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/pom.xml

    r5312 r5323  
    437437        <type>jar</type>
    438438    </dependency>
     439    <dependency>
     440      <groupId>de.mpg.mpgaai</groupId>
     441      <artifactId>mpgaai-shhaa</artifactId>
     442      <version>1.0.4</version>
     443    </dependency>
    439444  </dependencies>
    440445
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/resources/log4j.properties

    r5307 r5323  
    33log4j.appender.Console.layout.conversionPattern=%d %p [%c#%M:%L] - %m%n
    44
    5 log4j.appender.File.File=${catalina.base}/logs/vlo.log
     5log4j.appender.File.File=${catalina.base}/logs/vcr.log
    66log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
    77log4j.appender.File.layout=org.apache.log4j.PatternLayout
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/webapp/WEB-INF/web-shib.xml

    r5312 r5323  
    66    <display-name>CLARIN Virtual Collection Registry</display-name>
    77
     8    <!-- Shibboleth -->
     9
     10    <context-param>
     11        <param-name>ShhaaConfigLocation</param-name>
     12        <param-value>/WEB-INF/shhaa.xml</param-value>
     13    </context-param>
     14   
     15    <!-- Make sure this one is declared before the wicket filter, the order matters. Shibboleth should trigger the login, before continuing with the wicket filter.-->
     16    <filter>
     17        <filter-name>AAIFilter</filter-name>
     18        <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
     19    </filter>
     20    <filter-mapping>
     21        <filter-name>AAIFilter</filter-name>
     22        <url-pattern>/*</url-pattern>
     23    </filter-mapping>
     24   
     25    <!-- Spring -->
     26   
    827    <listener>
    928        <listener-class>eu.clarin.cmdi.virtualcollectionregistry.rest.ContextListener</listener-class>
    1029    </listener>
     30   
     31    <!-- Persistence -->
    1132
    1233    <filter>
     
    86107    </resource-ref>
    87108
    88     <!--
    89         Security constraints; authentication mechanism must be configured
    90         by means of a security realm (by default the UserDatabaseRealm is
    91         configured in Tomcat, which uses the tomcat-users.xml file)
    92     -->
    93     <security-constraint>
    94         <display-name>REST-Web-Service</display-name>
    95         <web-resource-collection>
    96             <web-resource-name>REST-Web-Service</web-resource-name>
    97             <description></description>
    98             <url-pattern>/service/virtualcollection</url-pattern>
    99             <http-method>POST</http-method>
    100         </web-resource-collection>
    101         <web-resource-collection>
    102             <web-resource-name>REST-Web-Service</web-resource-name>
    103             <description></description>
    104             <url-pattern>/service/virtualcollection/*</url-pattern>
    105             <http-method>DELETE</http-method>
    106             <http-method>POST</http-method>
    107             <http-method>PUT</http-method>
    108         </web-resource-collection>
    109         <web-resource-collection>
    110             <web-resource-name>REST-Web-Service</web-resource-name>
    111             <description></description>
    112             <url-pattern>/service/my-virtualcollections</url-pattern>
    113             <http-method>GET</http-method>
    114         </web-resource-collection>
    115         <web-resource-collection>
    116             <web-resource-name>VirtualCollectionRegistryApplication</web-resource-name>
    117             <description></description>
    118             <url-pattern>/app/login</url-pattern>
    119             <http-method>GET</http-method>
    120         </web-resource-collection>
    121         <auth-constraint>
    122             <role-name>*</role-name>
    123         </auth-constraint>
    124     </security-constraint>
    125 
    126     <login-config>
    127         <auth-method>BASIC</auth-method>
    128     </login-config>
    129 
    130     <security-role>
    131         <role-name>*</role-name>
    132     </security-role>
    133 
    134109    <mime-mapping>
    135110        <extension>xsd</extension>
Note: See TracChangeset for help on using the changeset viewer.