GithubHelp home page GithubHelp logo

bairahmat / cas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eurekaclinical/cas

0.0 2.0 0.0 1.24 MB

Patched JASIG CAS server used for authentication by Eureka!

Home Page: http://eurekaclinical.org

License: Apache License 2.0

Java 95.06% FreeMarker 1.27% JavaScript 3.67%

cas's Introduction

Eureka! Clinical Central Authentication Service (CAS)

Atlanta Clinical and Translational Science Institute (ACTSI), Emory University, Atlanta, GA

What does it do?

It is a patched JASIG (now Apereo) CAS server used for authentication by Eureka! Clinical projects. It provides single sign on across all Eureka! Clinical microservices, thus allowing microservices to be composed into a single integrated application. It can provide its own screens for the user to enter credentials, which are checked against a local database provided by eurekaclinical-user-service or an LDAP server. Alternatively, it can delegate that function to an OAuth or other CAS server.

This project depends on version 3.5.2 of CAS server, which implements support for versions 1 and 2 of the CAS protocol.

This project does not provide user authorization. Eureka! Clinical microservices are responsible for providing their own authorization.

Version 3.0 development series

Latest release: Latest release

The version 3.0 series has integrated password resets and password changes into this project (they previously were in Eureka! Clinical Analytics).

Version history

Version 2.0

Turned on the REST API access.

Version 1.0.2

Initial version supported version 1 of Eureka! Clinical Analytics.

Build requirements

Runtime requirements

Building it

The project uses the maven build tool. Typically, you build it by invoking mvn clean install at the command line. For simple file changes, not additions or deletions, you can usually use mvn install. See https://github.com/eurekaclinical/dev-wiki/wiki/Building-Eureka!-Clinical-projects for more details.

Installation

Configuration

Eureka! Clinical CAS is configured via a properties file located at /etc/ec-cas-server/cas.properties. In addition to the properties described in the JASIG CAS documentation, it supports the following properties:

  • eureka.authHandlers: comma-separated list of handlers for checking credentials entered on the built-in login screen, which may be jdbc (check with eurekaclinical-user-service) or ldap (check with a specified LDAP directory); default is jdbc.
  • eureka.ldap.uid.attribute: for specifying the UID attribute for an LDAP directory; default is cn.
  • eureka.ldap.email.attribute1: for specifying the email attribute for an LDAP directory; default is mail.
  • eureka.ldap.firstName.attribute1: for specifying the first name attribute for an LDAP directory; default is firstName.
  • eureka.ldap.lastName.attribute1: for specifying the last name attribute for an LDAP directory; default is lastName.
  • eureka.ldap.title.attribute1: for specifying the title attribute for an LDAP directory; default is title.
  • eureka.ldap.department.attribute1: for specifying the department attribute for an LDAP directory; default is ou.
  • eureka.ldap.organization.attribute1: for specifying the organization attribute for an LDAP directory; default is o.

A typical cas.properties file looks like the following:

server.name=https://hostname.running.cas
server.prefix=${server.name}/cas-server
host.name=hostname.running.cas
eureka.authHandlers=jdbc

# Whitelist the services that may access this CAS server.
cas.services.filter=https://(hostname1\\.edu|hostname2\\.edu|localhost).*

A Tomcat restart is required to detect any changes to the configuration file.

WAR installation

  1. Stop Tomcat.
  2. Remove any old copies of the unpacked war from Tomcat's webapps directory.
  3. Copy the warfile into the Tomcat webapps directory, renaming it to remove the version. For example, rename cas-server-1.0.war to cas-server.war.
  4. Start Tomcat.

Maven dependency

<dependency>
    <groupId>org.eurekaclinical</groupId>
    <artifactId>cas-server</artifactId>
    <version>version</version>
</dependency>

Developer documentation

Getting help

Feel free to contact us at [email protected].

cas's People

Contributors

hrathod-emory avatar arpost avatar candyam5522 avatar akalsan avatar

Watchers

James Cloos avatar Bai Rahmat 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.