GithubHelp home page GithubHelp logo

oiosaml.java's Introduction

OIOSAML.java is distributed under the Mozilla Public License 1.1, and is based on OpenSAML 2.0, which is released under the Apache License 2.0.

See docs/index.html for full documentation, including installation
instructions.

Building and packaging the project:
 
- Download and install latest Java SDK 6
- Set environment vaiable JAVA_HOME to installation dir of SDK 6
- Download and install groovy-2.1.6-installer.exe and include GANT in the installation. Hereafter set the environment variable GROOVY_HOME to the installation dir and include %GROOVY_HOME%\bin in the path. This will install a working version of GANT 1.9.9 (I did not succed in downloading and installing GANT manually. I tried many different versions (1.9.2, 1.9.5 and 1.9.9). Also I tried the GANT versions where Groovy must be manually installed.)
- Download and install JCE in order for the tests to succeed
- Run gant build_everything. Also, run this command before opening the project in an IDE in order to have the dependant jars downloaded.
 
Setting up demo application:
- Download Tomcat (e.g. 7.0.42) and set the environment variable CATALINA_HOME to the folder where you unpacked Tomcat. Optionally add %CATALINA_HOME%\bin to the path for easier startup and shutdown of Tomcat.

Uncomment connector on port 8080 and insert the connector below in %CATALINA_HOME%\conf\server.xml

-------------------------------------------------------------------------------------------------------------------------------------
	<!--
		Tomcat can use two different implementations of SSL:

		- the JSSE implementation provided as part of the Java runtime (since 1.4)
		- the APR implementation, which uses the OpenSSL engine by default.

		APR implementation is used as default but we need the JSSE implementation.
		We need to set protocol="org.apache.coyote.http11.Http11NioProtocol" in order to use the JSSE implementation.
		org.apache.coyote.http11.Http11NioProtocol is used over org.apache.coyote.http11.Http11Protocol to allow for better performance.
	-->
    <Connector port="443" 
			   protocol="org.apache.coyote.http11.Http11NioProtocol"
			   SSLEnabled="true"
			   maxThreads="150" 
			   scheme="https" 
			   secure="true"
			   clientAuth="false" sslProtocol="TLS" 
			   keystoreFile="Path to SSL certificate" 
			   keystorePass="S0lskin"
			   keystoreType="PKCS12"/>
-------------------------------------------------------------------------------------------------------------------------------------

- Insert the following in the <host> element %CATALINA_HOME%\conf\server.xml. This makes the oiosaml.java demo application available at the root path and makes the Tomcat manager available at /Tmgr path.

-------------------------------------------------------------------------------------------------------------------------------------
	<Context path="" docBase="oiosaml.java-demo" reloadable="true"/>
	<Context path="Tmgr" docBase="ROOT" reloadable="true"/>
-------------------------------------------------------------------------------------------------------------------------------------

Quick start:
 - Unzip oiosaml.java-sp-demo-*.war and edit WEB-INF/web.xml
 - Set oiosaml-j.home to point to an empty directory. It will be created if it does not exist.
 - Zip the files back into a war file and rename it to oiosaml.java-sp-demo
 - Deploy the war to a servlet container like Apache Tomcat
 - Open a browser and access the deployed application on https://localhost
 - Click on the Configure link to configure the system



oiosaml.java's People

Contributors

tandrup avatar

Watchers

James Cloos avatar Eko Indarto 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.