CAS authentication for SugarCRM
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

SugarCRM CAS Authentication

Original credit goes to David Burke ( who provided the original CASAuthenticate class files.

This is a class for SugarCRM ( that allows you to authenticate with a CAS server.

phpCAS is an authentication library that allows PHP applications to easily authenticate users via a Central Authentication Service (CAS) server.

Please see the phpCAS website for more information:

You will need to download the phpCAS libraries to your web server.


  1. Place the files into modules/Users/authentication/CASAuthenticate directory.

    git clone git:// modules/Users/authentication/CASAuthenticate

  2. Edit the config.php file

    Add a key for authenticationClass that is set to CASAuthenticate.

  'authenticationClass' => 'CASAuthenticate',

Add a 'cas' key to the $sugar_config array that is an array holding the values for your CAS server.

  'cas' => array(
    'library' => '/path/to/CAS/CAS.php',
    'hostname' => '',
    'port' => 443,
    'uri' => 'cas',
    'changeSessionID' => FALSE,
    'proxies' => array(


Copyright 2012 Alfred Bacon

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.