gorg/cas-bundle

Implements CAS Authentication on your website

Installs: 533

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 6

Open Issues: 2

Type:symfony-bundle

dev-master 2015-11-20 15:06 UTC

This package is not auto-updated.

Last update: 2024-03-16 11:20:05 UTC


README

  1. Introduction

This file will help you to install and configure the project.

  1. Installation

a) Add the bundle to your composer.json file at the project root

"require": {
    ...
    "gorg/casbundle": "master"
},
"repositories": {
    "gorg": {
        "type": "package",
        "package": {
            "name": "gorg/casbundle",
            "version": "master",
            "source": {
                "url": "ssh://git@gofannon.gorgu.net:7999/GRAM/gorgcasbundle.git",
                "type": "git",
                "reference": "master"
            }
        }
    }
},

b) Parameters Symfony sandbox for use GorgCasBundle

Please edit app/AppKernel.php file to update symfony Kernel

    $bundles = array(
        /*
         ...
        */
        new Gorg\Bundle\CasBundle\GorgCasBundle(),
    );

b) Parameters Symfony sandbox for use GorgCasBundle

Please edit app/config/config.yml and add the following line

gorg_cas:
    user_class: Gorg\Bundle\UserBundle\Entity\User
    mapping_role_attribute: type
    mapping_username_attribute: username

c) Parameters Symfony sandbox for use Gorg CAS Authentication

Please edit app/config/security.yml file to update symfony security policy

    # ...
    # If you want you can use a custom user provider
    # ...
    providers:
        CAS:
            id: cas.user_provider
# ...
    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

        secured_area:
            pattern:    ^/demo/secured/
                cas:
                    cas_server: auth.gadz.org
                    cas_port: 443
                    cas_path: /cas/
                    ca_cert_path: ~
                    cas_protocol: S1
                    cas_mapping_attribute: username
                    cas_logout: /logout