You are here

function _cas_server_check_service_whitelist in CAS 7

4 calls to _cas_server_check_service_whitelist()
cas_server_login in ./cas_server.module
Handle login
cas_server_logout in ./cas_server.module
Menu callback; triggers a CAS logout.
cas_server_service_validate in ./cas_server.module
serviceValidate method using cas 2.0 Returns data in xml
cas_server_validate in ./cas_server.module
Validate the ticket using a CAS 1.x methodology This provides the simple non-xml based

File

./cas_server.module, line 261
Provides a protocol compliant version of CAS server 2.x

Code

function _cas_server_check_service_whitelist($service) {
  $mapping_raw = variable_get('cas_server_service_whitelist', '');
  if (trim($mapping_raw) != '') {
    if (!drupal_match_path($service, $mapping_raw)) {
      return FALSE;
    }
  }
  return TRUE;
}