This plugin reserves a collection of URIs that create, validate, and destroy CAS tickets.
- /cas/login :: If user is not authenticated he/she is redirected to the login page. Otherwise the user is redirected to the service specified as a GET variable in the URL – or if service is not provided, the user is redirected to the WordPress instance’s home.
- /cas/logout :: The user’s session is destroyed, user is logged out of the WordPress instance, and redirected to $_GET['service'] (or the blog home if service isn’t provided)
- /cas/proxyValidate and /cas/validate :: The CAS ticket must be passed as a GET parameter in the URL when calling /cas/validate. The ticket is validated and XML is output with either cas:authenticationSuccess or cas:authenticationFailure
wpcas-serverdirectory to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
Hooks & Filters
This hook allows for the insertion of code after login has successfully completed and just before the ticket creation. One common use of this hook is to fill out the $_SESSION variable with site/user specific information.
This filter (executed in a successful ticket validation in /cas/validate) is used to override the user identifier returned in the cas:authenticationSuccess XML response. By default, the value returned is the $user_ID of the authenticated user. Using this filter, that value can be altered to whatever suits your implementation.
This project was based on the initial shell developed by Casey Bisson.