cas README

The project's README from github.com/apereo/cas. As one markdown file: README.md.

Apereo CAS

Apereo CAS

Open-source single sign-on and identity provider for the web.
One login for all your applications, over CAS, SAML2, OAuth2 and OpenID Connect, with multifactor authentication built in.

Latest release Maven Central Apache 2.0 license Slack Code coverage Revved up by Develocity

Quick Start · Documentation · Releases · Support · Contribute


CAS is an enterprise, multilingual identity provider and single sign-on server. It started as the CAS protocol, an open and well-documented authentication protocol, and this repository holds its primary implementation: a Java server built on Spring Boot and Spring Cloud, with support for a plethora of authentication protocols and features. CAS is free and open source, managed by the Apereo Foundation and licensed under Apache 2.0.

Try It in a Minute

With Docker installed, start the official image, using a CAS version tagged on Docker Hub in place of <version>:

docker run --rm -p 8080:8080 \
  -e SERVER_SSL_ENABLED=false -e SERVER_PORT=8080 \
  apereo/cas:<version>

Open http://localhost:8080/cas/login and log in as casuser with the password Mellon.

When you are ready for your own server, the Quick Start takes you from here to a configured WAR overlay with a registered application in eight short steps, and Getting Started explains how to plan a deployment. You do not need to clone this repository to run CAS; that is only required to contribute to the project.

What CAS Does

Area Highlights
Protocols CAS v1, v2 and v3, SAML v1 and v2, OAuth 2.0, OpenID Connect, OpenID for Verifiable Credentials, WS-Federation Passive Requester
Authentication LDAP and Active Directory, RDBMS, X.509, SPNEGO, JAAS, RADIUS, JWT, MongoDB, Apache Cassandra, BASIC, Remote, Trusted, passkeys and passwordless login, and more
Delegated authentication External SAML2, OpenID Connect, OAuth, CAS and WS-Federation identity providers, including social logins
Multifactor authentication Duo Security, WebAuthn FIDO2, Google Authenticator, YubiKey, Simple MFA, RADIUS and more
Authorization Heimdall, OpenFGA, Open Policy Agent, ABAC, time and date rules, REST, Internet2 Grouper and more
High availability Ticket registries on Hazelcast, Redis, JPA, MongoDB, DynamoDb, Memcached, Apache Ignite and more
Application registration Service registries on JSON, YAML, LDAP, JPA, MongoDB, DynamoDb, Redis, Google Cloud and more
User experience Global and per-application themes, password management and policy enforcement, attribute release consent, notifications by email and SMS (Twilio, Mailgun, SendGrid, Amazon SES)
Integrations Apache Syncope, SCIM, Shibboleth IdP, Keycloak, Okta, Swagger and more
Operations Admin dashboards, monitoring, metrics, logging and audits; runs on embedded Apache Tomcat or Jetty, in Docker containers and on Kubernetes

Documentation

Version Status Docs
development Ongoing work toward the next release Read
8.0.x Maintenance Release Read
7.3.x Maintenance Release Read

Release dates and end-of-life schedules are in the Maintenance Policy and the release schedule. The Apereo blog covers new releases, how-tos and deployment stories.

Contribute

If you have identified an enhancement or a bug, please submit a pull request for it. There is no need to open a separate issue first: the pull request is the issue, and it is tracked and tagged as such. The contributor guide explains how the project works, and the build guide shows how to build CAS from source.

Contributors to Apereo CAS

Support

Apereo CAS is 100% free open source software. The community has access to every release at no cost, and the time and effort to develop and maintain it are given by volunteers and contributors. If you or your employer benefit from CAS, please consider becoming a Friend of Apereo.

Questions are welcome on the mailing lists and Slack, where you will also find commercial support options. To report a security issue, please follow the security policy.

cas (apereo/cas)

Searching Database…

11.4K ·GitHub
What is this?CAS (Central Authentication Service) is an enterprise multilingual identity provider and single sign-on server for the web: an open-source Java platform for centralizing authentication and authorization.
Is this a library I add to my app's code, or a separate server I run?A server you deploy, not a library: your applications redirect users to CAS to log in, and it asserts their identity back to each app. This repo is that server implementation — nothing gets added into your app's codebase.
How do I actually get a CAS server up and running?Build a WAR using the recommended WAR Overlay method and run it on Apache Tomcat or Jetty, or as a Docker container. Cloning this codebase is only needed if you want to contribute to CAS itself.
Where do the usernames and passwords come from — does it force a particular user database on me?Nothing is forced: it can authenticate against JAAS, LDAP, relational databases, X.509, Radius, SPNEGO, JWT, MongoDB, Apache Cassandra and more, or delegate login to external identity providers over SAML2, OpenID Connect and OAuth.
How much work is it to keep running day to day — is there a catch?You operate the whole thing: register every application, run and scale the servers, and handle upgrades yourself. The software is free, but ongoing commercial support from Apereo is a paid extra.
Would a solo dev realistically run this for a small project, or is it built for organizations?It is built for organizations — companies, universities, anyone with many web apps that should share one login. A small personal project rarely justifies hosting a full identity platform.
Where can the server run — am I locked into Linux?It runs wherever Java runs — it is packaged for Apache Tomcat and Jetty and as Docker containers — so Linux servers are the norm, though not required. End users only ever meet it in a browser.
Is it really free to use for a commercial product?Yes — 100% free open source under Apache v2, with every release available at no cost, including for companies. Only optional commercial support from Apereo costs money.
Which SSO protocols can my applications use to talk to it?The full enterprise set: CAS v1/v2/v3, SAML v1 and v2, OAuth v2, OpenID Connect, and WS-Federation Passive Requester.
Can it require a second factor, like Duo or YubiKey?Yes — multifactor authentication is built in, with support for Duo Security, Simple MFA, YubiKey, RSA, Google Authenticator, WebAuthn FIDO2 and more.
Does it handle authorization too, or just login?Authorization is covered as well: policies can be enforced via Heimdall, OpenFGA, OPA, ABAC rules, time/date constraints, REST, or Internet2's Grouper.
Can I run several instances for high availability?Yes — clustered HA deployments are a supported scenario, with shared state in Hazelcast, JPA, Memcached, Apache Ignite, MongoDB, Redis, DynamoDB and more.
Creator
apereo
Size
360.5 MB
Stars
11.4K
Age
15y
Commits · 90 Days