pax_global_header 0000666 0000000 0000000 00000000064 13046401502 0014505 g ustar 00root root 0000000 0000000 52 comment=975c842d99522d75f2fd2072b9d86e2af8350838
oats-cred-web-master/ 0000775 0000000 0000000 00000000000 13046401502 0014776 5 ustar 00root root 0000000 0000000 oats-cred-web-master/.gitignore 0000664 0000000 0000000 00000000271 13046401502 0016766 0 ustar 00root root 0000000 0000000 .gradle
.nb-gradle
settings.gradle
build
build.gradle
src/test
src/main/java
src/main/webapp/META-INF/context.xml
src/main/webapp/WEB-INF/web.xml
src/main/sql/create_cdp_db.sql
oats-cred-web-master/build.gradle.template 0000664 0000000 0000000 00000002050 13046401502 0021064 0 ustar 00root root 0000000 0000000 plugins {
id 'java'
id 'maven'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7.1'
}
apply plugin: 'war'
war {
archiveName 'cred.war'
}
repositories {
mavenLocal()
jcenter()
}
sourceCompatibility = 1.7
group = 'org.opencadc'
version = '1.0.1'
dependencies {
runtime 'log4j:log4j:1.+'
runtime 'org.jdom:jdom2:2.+'
runtime 'xerces:xercesImpl:2.+'
runtime group: 'jaxen', name: 'jaxen', version: '1.1.6'
runtime 'org.bouncycastle:bcprov-jdk15on:1.46'
runtime 'javax.servlet:javax.servlet-api:3.+'
runtime 'org.springframework:spring-jdbc:2.5.6.SEC01'
runtime group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
runtime 'org.opencadc:cadc-log:1.+'
runtime 'org.opencadc:cadc-util:1.+'
runtime 'org.opencadc:cadc-cdp:1.+'
runtime 'org.opencadc:cadc-cdp-server:1.+'
runtime 'org.opencadc:cadc-vosi:1.+'
runtime 'org.opencadc:cadc-registry:1.+'
runtime 'org.opencadc:cadc-access-control-identity:1.+'
runtime 'org.opencadc:cadc-access-control:1.+'
}
oats-cred-web-master/src/ 0000775 0000000 0000000 00000000000 13046401502 0015565 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/ 0000775 0000000 0000000 00000000000 13046401502 0016511 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/sql/ 0000775 0000000 0000000 00000000000 13046401502 0017310 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/sql/create_cdp_db.sql.template 0000664 0000000 0000000 00000004476 13046401502 0024414 0 ustar 00root root 0000000 0000000 /**_____________________________________________________________________________
*
* OATS - INAF
* Osservatorio Astronomico di Tireste - Istituto Nazionale di Astrofisica
* Astronomical Observatory of Trieste - National Institute for Astrophysics
* ____________________________________________________________________________
*
* Copyright (C) 20016 Istituto Nazionale di Astrofisica
*
* 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.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* _____________________________________________________________________________
**/
/*
DataBase creation and grant assignment
*/
CREATE DATABASE YOUR_DATABASE_NAME;
CREATE USER 'YOUR_DB_USER'@'localhost' identified by 'YOUR_DB_PASSWORD';
grant all on YOUR_DATABASE_NAME.* to 'YOUR_DATABASE_USER' identified by 'YOUR_DATABASE_USER_PASSWORD';
use YOUR_DATABASE_NAME;
/*
Credential delegation service database
*/
CREATE TABLE x509_certificates
(
canon_dn VARCHAR(256) NOT NULL,
exp_date DATETIME default CURRENT_TIMESTAMP,
cert_chain TEXT,
private_key BLOB,
csr TEXT,
hash_dn VARCHAR(256) NOT NULL,
PRIMARY KEY (hash_dn)
) ENGINE=InnoDB;
/*
DB versions support:
Since MariaDB 10.0.1, DATETIME columns also accept CURRENT_TIMESTAMP as the default value.
Since MySQL 5.6.X CURRENT_TIMESTAMP is supported.
For older versions it can be set as example:
lastModified DATETIME default NULL
and then a trigger can be used to set a current timestamp as default. Example:
DELIMITER ;;
CREATE TRIGGER `my_trigger` BEFORE INSERT ON `my_table` FOR EACH ROW
BEGIN
SET NEW.date_to_be_set = NOW();
END;;
DELIMITER ;
*/
oats-cred-web-master/src/main/webapp/ 0000775 0000000 0000000 00000000000 13046401502 0017767 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/webapp/META-INF/ 0000775 0000000 0000000 00000000000 13046401502 0021127 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/webapp/META-INF/context.xml.template 0000664 0000000 0000000 00000003505 13046401502 0025152 0 ustar 00root root 0000000 0000000
oats-cred-web-master/src/main/webapp/WEB-INF/ 0000775 0000000 0000000 00000000000 13046401502 0021016 5 ustar 00root root 0000000 0000000 oats-cred-web-master/src/main/webapp/WEB-INF/web.xml.template 0000664 0000000 0000000 00000016431 13046401502 0024134 0 ustar 00root root 0000000 0000000
YOUR SERVICE DISPLAY NAME
javax.servlet.request.X509Certificate
CadcDelegationServlet
ca.nrc.cadc.cred.server.CadcDelegationServlet
SU_DNS
"X509 CERTIFICATE SUBJECT OF A SUPER USER"
2
ProxyServlet
ca.nrc.cadc.cred.server.ProxyServlet
trustedPrincipals
"X509 CERTIFICATE SUBJECT OF THE TRUSTED PROXY USER"
datasource
jdbc/YOUR_DATABASE_NAME
catalog
YOUR_DATABASE_NAME
2
AvailabilityServlet
ca.nrc.cadc.vosi.AvailabilityServlet
ca.nrc.cadc.vosi.WebService
ca.nrc.cadc.ac.server.web.ServiceAvailability
3
CapabilitiesServlet
ca.nrc.cadc.vosi.CapabilitiesServlet
input
/capabilities.xml
logControl
ca.nrc.cadc.log.LogControlServlet
logLevel
debug
logLevelPackages
ca.nrc.cadc.auth
ca.nrc.cadc.core
ca.nrc.cadc.cred
ca.nrc.cadc.cred.client
ca.nrc.cadc.cred.client.priv
ca.nrc.cadc.cred.server
ca.nrc.cadc.cred.server.actions
ca.nrc.cadc.cert
ca.nrc.cadc.net
org.astrogrid.security.delegation
1
CadcDelegationServlet
/auth/*
CadcDelegationServlet
/*
ProxyServlet
/priv/*
ProxyServlet
/auth/priv/*
CapabilitiesServlet
/capabilities
logControl
/logControl
Public security role
public
auth
/auth/*
GET
POST
HEAD
PUT
OPTIONS
TRACE
DELETE
force authentication for all requests
public
BASIC
YOUR_REALM_NAME
oats-cred-web-master/src/main/webapp/capabilities.xml 0000664 0000000 0000000 00000005050 13046401502 0023142 0 ustar 00root root 0000000 0000000
http://replace.me.com/cred/capabilities
http://replace.me.com/cred/availability
https://replace.me.com/cred/logControl
https://replace.me.com/cred
https://replace.me.com/cred/auth/priv
https://replace.me.com/cred/priv
https://replace.me.com/cred/priv
https://replace.me.com/cred/priv