Concepts
1. CAS
CAS (Central Authentication Service)
An open‑source Web SSO (Single Sign‑On) framework originated from Yale University.
2. SSO (Single Sign‑On)
Unify identity login verification for multiple web applications through one single endpoint.
- Features: Applications communicate over web protocols (HTTPS) with a global unified login entry point
- Plain explanation: Log in once at the authentication center within the same browser, and you can access all trusted services without repeated sign‑ins
3. Three Roles in the SSO Ecosystem
- User: End‑user (web browser)
- Web Applications (multiple business systems)
- SSO Authentication Center (singleton)
4. Three Core Principles of SSO
- All account login operations must be performed at the SSO authentication center;
- The authentication center provides mechanisms to notify each web application whether the current user has been authenticated;
- Pre‑established trust relationships exist between the authentication center and all business web applications.
Two Core Components
CAS Server (Authentication Server‑Side)
- Independently‑deployed web program, serving as the only authentication hub
- Responsibilities: Accept username and password credentials, validate user identity; issue tickets (Ticket), manage global session Cookie (TGC)
CAS Client (Embedded within each business system)
- Hosted inside each business web application, usually implemented as a Filter
- Responsibilities: Intercept requests for protected resources; redirect the browser to the CAS Server login page automatically when the user is unauthenticated
Workflow
- User accesses resources on a business system → CAS Client intercepts the request and detects no
Service Ticketpresent - The Client redirects the browser to the CAS Server login URL, passing along the current business system address (Service)
- User submits username and password on CAS Server to complete authentication
- Successful login: CAS Server sets a TGC (Ticket Granting Cookie) global session cookie in the browser
- One‑time ticket generated: Service Ticket (ST)
- CAS Server redirects the browser back to the business system URL with
Ticket=xxxappended as a URL parameter - CAS Client on the business system makes a backend server‑to‑server call with Service address + Ticket to validate ticket legitimacy against CAS Server
- CAS Server confirms valid ticket and returns user identity details such as username
- Validation succeeds, business system creates local session and user can browse pages normally
Purpose of TGC: As long as the browser holds the TGC Cookie, subsequent visits to other CAS‑integrated systems skip the login prompt and single sign‑on happens automatically.
Introduction
Next: Installation