CAS Single Sign-On integration for Pressbooks.

Installs: 2 559

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 9

Forks: 1

Open Issues: 4


1.2.3 2019-08-19 21:39 UTC


Contributors: conner_bw, greatislander
Tags: pressbooks, sso, cas
Requires at least: 5.2.2
Tested up to: 5.2.2
Stable tag: 1.2.3
License: GPLv3 or later
License URI:

CAS Single Sign-On integration for Pressbooks.


Packagist GitHub release Travis Codecov

Plugin to integrate Pressbooks with Central AuthenticationService (CAS) single sign-on architectures.

Users who attempt to login to Pressbooks are redirected to the central CAS sign-on screen. After the user’s credentials are verified, they are redirected back to the Pressbooks network. If we match a Pressbooks user by CAS username (stored in user_meta table), the user is recognized as valid and allowed access. If no match, then try to match a Pressbooks user by email (and store a successful match in user_meta table for next time). If the CAS user does not have an account in Pressbooks, a new user can be created, or access can be refused, depending on the configuration.


composer require pressbooks/pressbooks-cas-sso

Or, download the latest version from the releases page and unzip it into your WordPress plugin directory:

Then, activate and configure the plugin at the Network level.

Read the integrations documentation for more info:

Security Considerations

Set the PB_CAS_CERT_PATH environment variable to configure validation of the CAS server. Used by CURLOPT_CAINFO for peer and host verification:

putenv( 'PB_CAS_CERT_PATH=/path/to/cachain.pem' ); // Path to the CA chain that issued the CAS server certificate

Advanced Configuration

The email can be filtered, example: add_filter( 'pb_integrations_multidomain_email', function( $email, $uid, $plugin ) { /* Custom use case, return $email */ }, 10, 3 );

Because this plugin uses the fabulous apereo/phpCAS library, many other configuration variables can be tweaked.


Pressbooks CAS Administration.



Upgrade Notice


  • Pressbooks CAS Single Sign-On requires Pressbooks >= 5.9.1