This tutorial is designed to help a new CAS user to setup Apereo CAS server and client to their applications. The code of this tutorial is open sourced on GitHub.

What's CAS?

Enterprise Single Sign-On - CAS provides a friendly open source community that actively supports and contributes to the project. While the project is rooted in higher-ed open source, it has grown to an international audience spanning Fortune 500 companies and small special-purpose installations.

CAS provides enterprise single sign-on service for the Web:

An open and well-documented protocol

An open-source Java server component

Pluggable authentication support (LDAP, database, X.509, 2-factor)

Support for multiple protocols (CAS, SAML, OAuth, OpenID)

A library of clients for Java, .Net, PHP, Perl, Apache, uPortal, and others

Setup Aperro CAS Server

Download Source Code

Before start, you need to download the source code from GitHub. In this tutorial, we are about to use the 4.x release.

Create Maven Project

After download completes, uncompress the source code and copy cas-server-webapp/src/main/webapp and cas-server-webapp/src/main/resources to webapp and resources folder of the new created Maven project respectively.

HTTP Support

We strongly recommend you to use HTTPS in production environment! But in development environment, you may want to use HTTP. You need to edit WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml as following: