Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 1.29 KB

File metadata and controls

63 lines (53 loc) · 1.29 KB

UniversiboShibbolethBundle

This bundle integrates Shibboleth Apache Module with Symfony 2.1 or later

Installation

Step 1: download the bundle using composer

Add these lines to your composer.json

{
    "require": {
        "universibo/shibboleth-bundle": "*"
    }
}

Run composer from command line to install it

$ php composer.phar update universibo/shibboleth-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Universibo\Bundle\ShibbolethBundle\UniversiboShibbolethBundle(),
    );
}

Step 3: Define a homepage rule

homepage:
    pattern: /

Step 4: Implement user provider interface

Define a service implementing Universibo\Bundle\ShibbolethBundle\Security\User\ShibbolethUserProviderInterface

Step 5: Configure your bundle (app/config/config.yml)

universibo_shibboleth:
  idp_url: # Identity Provider Web Page
    base: '%idp_url%'
    info: 'infoSSO.aspx'
    logout: 'prelogout.aspx'
  route:
    after_login:  'route_name'
  claims:
    - eppn
    - givenName
  user_provider: user.provider.service.id
  firewall_name: main # Optional, default value: main

(to be continued)