The phpCAS library provides a simple API for authenticating users against a CAS server. phpCAS is configured using the static API methods such asphpCAS::client()
and phpCAS::setCasServerCACert()
. After phpCAS has been configured, a call to phpCAS::forceAuthentication()
executes the login process if the current user is not already authenticated, redirecting out to the CAS server's login page. After phpCAS::forceAuthentication()
has been called, the current user's id is accessible via phpCAS::getUser()
.