Giter Club home page Giter Club logo

shibboleth-idp-gradle-overlay's Introduction

shibboleth-idp-gradle-overlay

The Shibboleth Identity Provider web application built using a Gradle overlay. (A similar yet much uglier experiment done with Maven exists here)

This project was developed as part of Unicon's Open Source Support program. Professional support/integration assistance for this module is available. For more information, visit https://unicon.net/opensource/shibboleth.

Requirements

  • JDK 11
  • Tomcat 9

Initial Setup

Run once:

./gradlew clean unpackShibboleth

Build

Run afterwards:

./gradlew build overlay

IntelliJ IDEA

Create a Run Configuration based on a Tomcat server. If you don't have a Tomcat instance available, download one as a zip archive and configure it inside IDEA. When done, select that as the application server in the "Run Configuration" screen. download one as a zip archive and configure it inside IDEA. When done, select that as the application server in the Run Configuration screen.

Server

  • Specify a URL: https://org.example.net:8443/idp
  • Add the following VM options:
-Didp.home=<project-path>/build/tmp/unpackShibboleth/shibboleth-idp
  • For "Tomcat Server Settings", use ports 8080, 8443 and 1099.
  • For "Before launch" tasks, add build overlay.

image

Your external Tomcat server must have enabled port 8443 in its conf/server.xml file:

<Connector
   protocol="org.apache.coyote.http11.Http11NioProtocol"
   port="8443" maxThreads="200"
   scheme="https" secure="true" SSLEnabled="true"
   keystoreFile="${user.home}/mykeystore" keystorePass="changeit"
   clientAuth="false" sslProtocol="TLS"/>

Ensure Tomcat binaries are allowed to execute:

chmod +x $CATALINA_HOME/bin/*.sh
chmod +x $CATALINA_HOME/bin/*.bat

Deployment

  • Add an External Source for deployment, and select <project-path>/build/tmp/unpackShibboleth/shibboleth-idp/webapp
  • Use /idp as the application context path.

image

Logs

  • Select Tomcat Localhost Log and Tomcat Catalina Log
  • Add a new log entry with the alias idp and the log file location <project-path>/build/tmp/unpackShibboleth/shibboleth-idp/logs/idp-*.log

image

Usage

Overlay

The src/test/overlay directory contains files that will be laid on top of the originals. Mimic the same directory structure as the IdP itself and add files for customizations.

Authentication

Authentication is mocked using a dummy JAAS connector. Use any password/username you like. All is welcome.

Logs

Logging is controlled by the logback.xml file in the overlay directory. DEBUG level is turned on by default for a number of packages.

Build, Run and Remove docker image

Build the docker image without running it. This will also rebuild your shibboleth:

./gradlew buildDockerImage

Build and run the docker image, if you see an error that says that you cannot have duplicate images, then run the cleanDockerImage task below before running this task again:

./gradlew runDockerImage

Stop and remove the docker image if it is running.

./gradlew cleanDockerImage

shibboleth-idp-gradle-overlay's People

Contributors

mmoayyed avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.