source: main/trunk/greenstone3/resources/tomcat/greenstone3.xml.svn@ 35354

Last change on this file since 35354 was 35354, checked in by davidb, 3 years ago

Updated to use new custom Realm, which monitors for authentication with an account name of 'googlesign' in which case the provided credentials/password needs to be a Google Id Token which can be verified through a call Google Client API. All other usernames pass through to JDBCRealm (through inheritance), and are handled as before

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1<!-- set allowLinking to true if you want to use symlinks to files or directories outside the docBase directory -->
2<!-- set reloadable to false for a production version. if true, automatically reloads the webapp if it detects changes in classes or lib directories -->
3<!-- see http://tomcat.apache.org/tomcat-5.5-doc/config/context.html for more Context attributes -->
4
5<Context
6 docBase="@gsdl3webwritablehome@"
7 aliases="/interfaces=@gsdl3webhome@/interfaces,/sites=@gsdl3webhome@/sites"
8 debug="1" reloadable="true"
9 @privilegedattribute@
10 allowLinking="@allowlinking@"
11 xmlBlockExternal="false">
12 <Resources allowLinking="@allowlinking@" />
13
14<!--
15 For embedded derby db:
16 driverName="org.apache.derby.jdbc.EmbeddedDriver"
17 connectionURL="jdbc:derby:@gsdl3webhome@/etc/usersDB"
18-->
19 <Realm className="org.greenstone.gsdl3.GoogleSigninJDBCRealm"
20 driverName="org.apache.derby.jdbc.ClientDriver"
21 connectionURL="jdbc:derby://@derbyserver@:@derbyserverport@/@gsdl3webhome@/etc/usersDB"
22 userTable="users" userNameCol="username" userCredCol="password"
23 userRoleTable="roles" roleNameCol="role"
24 userEmailCol="email"
25 googlesigninClientId="@googlesigninclientid@"
26 />
27 <!-- Session Manager. Default values are used. See
28 packages/tomcat/webapps/docs/config/manager.html for more info.
29 Pathname may be absolute, or relative to greenstone3 context work
30 directory: packages/tomcat/work/Catalina/localhost/greenstone3.
31 Set pathname="" to disable storing session info between restarts.
32 To manually clear session info, stop Tomcat and delete the session
33 file. -->
34 <Manager pathname="SESSIONS.ser" />
35
36 <!-- Allow all machines or just this machine: 127.0.0.1 (IPv4) and 0:0:0:0:0:0:0:1 (IPv6, needed on windows)
37 https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html -->
38 <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="@allowedIPs@"/>
39</Context>
Note: See TracBrowser for help on using the repository browser.