-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy from the trunk to the master directory
git-svn-id: https://svn.lternet.edu/svn/NIS/master@2350 494e2532-0c3a-4da7-aa3c-384db2200ce1
- Loading branch information
dcosta
committed
Sep 25, 2012
1 parent
83d5039
commit 270111f
Showing
19 changed files
with
1,604 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
web.service.version = GateKeeper-0.1 | ||
token.name = auth-token | ||
token.ttl = 28800000 | ||
token.authgroup = authenticated | ||
token.publicuser = public | ||
ldap.keystore = keystore.jks | ||
token.privatekey = private-key.ser |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# /** | ||
# * '$rcsfile: log4j.properties,v $' | ||
# * copyright: 2002 regents of the university of california and the | ||
# * national center for ecological analysis and synthesis | ||
# * '$author: brooke $' | ||
# * '$date: 2003/06/24 00:58:49 $' | ||
# * '$revision: 1.1 $' | ||
# * | ||
# * this program is free software; you can redistribute it and/or modify | ||
# * it under the terms of the gnu general public license as published by | ||
# * the free software foundation; either version 2 of the license, or | ||
# * (at your option) any later version. | ||
# * | ||
# * this program is distributed in the hope that it will be useful, | ||
# * but without any warranty; without even the implied warranty of | ||
# * merchantability or fitness for a particular purpose. see the | ||
# * gnu general public license for more details. | ||
# * | ||
# * you should have received a copy of the gnu general public license | ||
# * along with this program; if not, write to the free software | ||
# * foundation, inc., 59 temple place, suite 330, boston, ma 02111-1307 usa | ||
# */ | ||
# | ||
# | ||
################################################################################ | ||
################################################################################ | ||
# | ||
# for conversion/formatting characters, see: | ||
# | ||
# http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html | ||
# | ||
################################################################################ | ||
################################################################################ | ||
|
||
# set the log level to WARN and the log should be printed to stdout. | ||
log4j.rootLogger=WARN, stdout | ||
log4j.threshold=FATAL, ERROR, WARN, INFO | ||
|
||
|
||
### LOGGING TO CONSOLE ######################################################### | ||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
|
||
# define the pattern to be used in the logs... | ||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} Gatekeeper: [%p] [%c]: %m %n | ||
|
||
# %p -> priority level of the event - (e.g. WARN) | ||
# %m -> message to be printed | ||
# %c -> category name ... in this case name of the class | ||
# %d -> Used to output the date of the logging event. example, %d{HH:mm:ss,SSS} or %d{dd MMM yyyy HH:mm:ss,SSS}. Default format is ISO8601 format | ||
# %M -> print the method name where the event was generated ... can be extremely slow. | ||
# %L -> print the line number of the event generated ... can be extremely slow. | ||
# %t -> Used to output the name of the thread that generated the log event | ||
# %n -> carriage return | ||
|
||
################################################################################ | ||
# EXAMPLE: Print only messages of level WARN or above in the package com.foo: | ||
# log4j.logger.com.foo=WARN | ||
log4j.logger.edu.lternet.pasta.gatekeeper=INFO |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | ||
<context-param> | ||
<param-name>CONFIG_DIR</param-name> | ||
<param-value>WEB-INF/conf</param-value> | ||
</context-param> | ||
<listener> | ||
<listener-class>edu.lternet.pasta.gatekeeper.ConfigurationListener</listener-class> | ||
</listener> | ||
<servlet> | ||
<servlet-name>GatekeeperEventManagerProxy</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlets.ProxyServlet$Transparent</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
<init-param> | ||
<param-name>Prefix</param-name> | ||
<param-value>/eventmanager</param-value> | ||
</init-param> | ||
<init-param> | ||
<param-name>ProxyTo</param-name> | ||
<param-value>http://event.lternet.edu:8080/eventmanager</param-value> | ||
</init-param> | ||
</servlet> | ||
<servlet> | ||
<servlet-name>GatekeeperDataPackageManagerProxy</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlets.ProxyServlet$Transparent</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
<init-param> | ||
<param-name>Prefix</param-name> | ||
<param-value>/package</param-value> | ||
</init-param> | ||
<init-param> | ||
<param-name>ProxyTo</param-name> | ||
<param-value>http://package.lternet.edu:8080/package</param-value> | ||
</init-param> | ||
</servlet> | ||
<servlet> | ||
<servlet-name>GatekeeperAuditManagerProxy</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlets.ProxyServlet$Transparent</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
<init-param> | ||
<param-name>Prefix</param-name> | ||
<param-value>/audit</param-value> | ||
</init-param> | ||
<init-param> | ||
<param-name>ProxyTo</param-name> | ||
<param-value>http://audit.lternet.edu:8080/audit</param-value> | ||
</init-param> | ||
</servlet> | ||
<servlet> | ||
<servlet-name>GatekeeperTester</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlets.ProxyServlet$Transparent</servlet-class> | ||
<load-on-startup>1</load-on-startup> | ||
<init-param> | ||
<param-name>Prefix</param-name> | ||
<param-value>/test</param-value> | ||
</init-param> | ||
<init-param> | ||
<param-name>ProxyTo</param-name> | ||
<param-value>http://localhost:8080/gatekeepertester</param-value> | ||
</init-param> | ||
</servlet> | ||
<servlet> | ||
<servlet-name>api-docs</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> | ||
</servlet> | ||
<servlet> | ||
<servlet-name>demo</servlet-name> | ||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> | ||
</servlet> | ||
<filter> | ||
<filter-name>GatekeeperFilter</filter-name> | ||
<filter-class>edu.lternet.pasta.gatekeeper.GatekeeperFilter</filter-class> | ||
</filter> | ||
<filter-mapping> | ||
<filter-name>GatekeeperFilter</filter-name> | ||
<servlet-name>GatekeeperEventManagerProxy</servlet-name> | ||
<servlet-name>GatekeeperDataPackageManagerProxy</servlet-name> | ||
<servlet-name>GatekeeperAuditManagerProxy</servlet-name> | ||
<servlet-name>GatekeeperTester</servlet-name> | ||
</filter-mapping> | ||
<servlet-mapping> | ||
<servlet-name>GatekeeperEventManagerProxy</servlet-name> | ||
<url-pattern>/eventmanager/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>GatekeeperDataPackageManagerProxy</servlet-name> | ||
<url-pattern>/package/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>GatekeeperAuditManagerProxy</servlet-name> | ||
<url-pattern>/audit/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>GatekeeperTester</servlet-name> | ||
<url-pattern>/test/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>api-docs</servlet-name> | ||
<url-pattern>/docs/*</url-pattern> | ||
</servlet-mapping> | ||
<servlet-mapping> | ||
<servlet-name>demo</servlet-name> | ||
<url-pattern>/demo/*</url-pattern> | ||
</servlet-mapping> | ||
</web-app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Gatekeeper/Authentication Acceptance Tests</title> | ||
|
||
<link href="style.css" rel="stylesheet" type="text/css"> | ||
|
||
<script type="text/javascript" src="webtoolkit.base64.js"> | ||
</script> | ||
<script type="text/javascript" src="web-service-requests.js"> | ||
</script> | ||
<script type="text/javascript" src="util.js"> | ||
</script> | ||
<script type="text/javascript"> | ||
|
||
function initializeRequestForm(requestName) { | ||
|
||
clearResponse(); | ||
|
||
switch (requestName) { | ||
|
||
case "CHOOSE": | ||
clearRequest(); | ||
return; | ||
|
||
case "BASIC": | ||
Requests.initializeReadBasic(document.requestForm, document.cookie); | ||
return; | ||
|
||
case "TOKEN": | ||
Requests.initializeReadToken(document.requestForm); | ||
return; | ||
|
||
case "PUBLIC": | ||
Requests.initializeReadPublic(document.requestForm, document.cookie); | ||
return; | ||
} | ||
} | ||
|
||
</script> | ||
</head> | ||
|
||
<body class="content"> | ||
<h1> | ||
Gatekeeper/Authentication Acceptance Tests | ||
</h1> | ||
<hr/> | ||
<div class="demo"> | ||
<table> | ||
<tr> | ||
<td> | ||
<form id="requestForm" name="requestForm" method="POST" | ||
action=""> | ||
<table border="0" cellpadding="4" cellspacing="0" | ||
width="580" class="content"> | ||
<tr> | ||
<td> | ||
<b>Web Service Requests</b> | ||
<br /> | ||
<select id="requestName" name="requestName" | ||
onChange="initializeRequestForm(requestName.value)"> | ||
<option value="CHOOSE"> | ||
Select one of the following web service | ||
requests: | ||
</option> | ||
<option value="BASIC"> | ||
Basic Authentication | ||
</option> | ||
<option value="TOKEN"> | ||
Token Authentication | ||
</option> | ||
<option value="PUBLIC"> | ||
Public Authentication | ||
</option> | ||
</select> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td width="100%"> | ||
<b>Request Description</b> | ||
<br /> | ||
<textarea id="description" name="description" | ||
type="text" class="webServiceDescription" | ||
readonly="readonly" rows="4" cols=""> | ||
</textarea> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>Base URL:</b> https://pasta.lternet.edu | ||
<br /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>Relative URL</b> | ||
<br /> | ||
<input type="text" id="relativeUrl" | ||
name="relativeUrl" class="formTextField"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>HTTP verb</b> | ||
<br /> | ||
<input type="text" id="httpVerb" name="httpVerb" | ||
class="formTextField"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>User</b> | ||
<br /> | ||
<input type="text" id="user" name="user" | ||
class="formTextField"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>Password</b> | ||
<br /> | ||
<input type="password" id="password" name="password" | ||
class="formTextField"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>Request Content-Type</b> | ||
<br /> | ||
<input type="text" id="contentType" | ||
name="contentType" class="formTextField"> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td width="100%"> | ||
<b>Request Entity</b> | ||
<br /> | ||
<textarea id="entity" name="entity" | ||
class="formTextArea" rows="15" cols=""> | ||
</textarea> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td align="center"> | ||
<input type="button" value="Send Request" | ||
onClick="sendRequest();"> | ||
<input type="button" value="Clear" | ||
onClick="clearRequestAndResponse()"> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
|
||
<br /> | ||
</div> | ||
</td> | ||
<td> | ||
<div class="mainResult"> | ||
<table class="content"> | ||
<tr> | ||
<td> | ||
<b>Response</b> | ||
<br /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<textarea id="response" name="response" | ||
class="webServiceResult" readonly="readonly" | ||
rows="50" cols=""> | ||
</textarea> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.