Unicon/ngref-cas

Name: ngref-cas

Owner: Unicon, Inc.

Description: null

Created: 2018-02-24 00:11:54.0

Updated: 2018-04-05 15:56:47.0

Pushed: 2018-04-25 19:08:07.0

Homepage: null

Size: 125

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Reference Implementation for the Wiley NextGEN CAS Server

The reference implementaton demonstrates the use of CAS to fulfil the following requirements:

Additional Featurs

Wiley Build Instructions

(The following instructions will create a c:\etc\cas directory on your workstation)

To build and run this on a local workstation, perform the following steps:

Package the CAS Server
build.cmd package
Install the self signed cert into your JVM keystore (you may need to run this with Admin privs)
installCert.cmd
Build and run the CAS Server
build.cmd run    

Custom Authentication Handler

A very basic custom authentication handler has been created to demostrate a custom authentication handler that could be created to to call the NG User API for actual authentication

The authentication handler was built using the instructions here: https://apereo.github.io/cas/5.2.x/installation/Configuring-Custom-Authentication.html

The custom authentication handler class created is com.wileyng.cas.auth.NgAuthenticationHandler The registration configuation class is com.wileyng.cas.auth.NgAuthenticationEventExecutionPlanConfiguration The configuration for the handler is in src/main/resources/META-INF/spring.factories

OIDC Provider

Endpoints

Configuration Notes

Custom Login Provider

openssl s_client -connect localhost:8443 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > certfile.txt sudo $JAVA_HOME/bin/keytool -import -alias “selfcert” -file certfile.txt -keystore $JAVA_HOME/jre/lib/security/cacerts

https://apereo.github.io/2018/01/05/cas-deployment-with-proxy/

Health Check Endpoint

curl -k --user casuser:test https://localhost:8443/cas/status/health

Redis

docker run -it --link some-redis:redis --rm redis redis-cli -h locahost -p 6379

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.