Skip to content

CAS Manual Overrides

Dirk Tepe edited this page Mar 24, 2024 · 3 revisions

Sometimes you may need to override typical behaviors due to the nature of your app. This package allows you two hidden items you can leverage for these tasks. There are very circumstantial reasons you might use these.

Direct access to phpCAS Methods

This has already been documented in the Dynamic Calls of the usage page. This will allow you full and direct access to the phpCAS package methods.

Override Session Lifetime

A hidden configuration parameter is 'cas_session_lifetime'. The default is 7200, translating to 120 minutes before the server performs a follow-up request for re-authentication to the CAS provider.

Add this, just below the 'cas_masquerade' line in the CAS config file provided by this package. The following server request will incorporate these changes. Note: You may need to clear your config cache to see the effects.

'cas_session_lifetime'      => your_number_override