acPhpCasPlugin - 1.0.1

acPhpCasPlugin - Allows you to use easily the phpCAS library

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

acPhpCasPlugin (for symfony 1.3/1.4)

Allows you to use easily the phpCAS library (Central Authentication Service).

Installation

  • Install the plugin (via a package)

    symfony plugin:install acPhpCasPlugin
    
  • Install the plugin (via a git clone)

    git clone git://gitorious.org/accasplugin/accasplugin.git acPhpCasPlugin
    
  • Activate the plugin in the config/ProjectConfiguration.class.php

    class ProjectConfiguration extends sfProjectConfiguration
    {
      public function setup()
      {
        $this->enablePlugins(array(
          'sfDoctrinePlugin', 
          'acPhpCasPlugin',
          '...'
        ));
      }
    }
  • Configure the plugin in the config/app.yml of the application

    all:
      ...
      ac_php_cas:
        domain: "**********.***"
        port: 443
        path: "****"
        url : "https://**********.***"
      ...
  • Clear your cache

    symfony cc
    
  • Note : the phpCAS library is included in the plugin (in its stable version 1.2.2)

Use

  • You have access to the phpCAS methods with the acPhpCas class (all methods are static and compatible PHP 5.x), for example :

    acPhpCas::client();
    acPhpCas::forceAuthentication();
  • For more information on phpCAS, see the project and documentation at phpCAS Project