Giter VIP home page Giter VIP logo

webidrepository's Introduction

This is the WebID Repository for the JISC Access and Identity Management 
using Social Networking Technologies.

It uses the Corypha framework (small developed as part of this project),
which is based on Restlet and provides features such as templates and
persistence.


The Webapp module is intended to be run within a servlet contain (from its war
file). The configuration is based on JNDI.

Because this webapp issues certificates, it needs a keystore (with a private key
with which to sign these certificates). This can be configured within
server.xml in Tomcat (for example) as follows:




<Context docBase="webidrepository-webapp" path="/webidrepository-webapp" reloadable="true" source="org.eclipse.jst.jee.server:webidrepository-webapp">
    <Environment name="webiddirectory/signingKeystorePath" override="false" type="java.lang.String" value="/path/to/keystore.p12"/>
    <Environment name="webiddirectory/signingKeystoreType" override="false" type="java.lang.String" value="PKCS12"/>
    <Environment name="webiddirectory/signingKeystorePassword" override="false" type="java.lang.String" value="testtest"/>
    <Environment name="webiddirectory/issuerName" override="false" type="java.lang.String" value="CN=FOAFSSLTEST"/>

    <Environment name="hibernate/connection.datasource" override="false" type="java.lang.String" value="java:comp/env/jdbc/webiddirectoryDS"/>
    <Environment name="hibernate/dialect" override="false" type="java.lang.String" value="org.hibernate.dialect.Oracle10gDialect"/>
    <Environment name="hibernate/show_sql" override="false" type="java.lang.String" value="true"/>
    <Environment name="hibernate/hbm2ddl.auto" override="false" type="java.lang.String" value="update"/>

    <Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" maxActive="5" maxIdle="3" maxWait="-1" name="jdbc/webiddirectoryDS" password="....." type="javax.sql.DataSource" url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=......)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=....)))" username="......"/>
</Context>


Note that you would need to adapt to Hibernate driverClassName attribute for 
your JDBC driver and the 'hibernate/dialect' environment value to the fully
qualified name of the hibernate dialect matching this driver.
You may need to download the JDBC driver you want to use (the one from Oracle
could not be bundled for licensing reasons) and place it in the lib
directory of your servlet container.

webidrepository's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.