Commit e80f98e0 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

2.2.0

parents 75f7af5b 0dc0e58c
{
"name": "unicaen/unicaen-oauth",
"description": "Serveur OAuth2 authentifiant soit via LDAP, soit via CAS",
"minimum-stability": "dev",
"license": "proprietary",
"authors": [
{
......@@ -16,9 +15,10 @@
}
],
"require": {
"zendframework/zend-servicemanager": "~2.4 || ^2.5 || ^7.0",
"zendframework/zend-authentication": "~2.4 || ^2.5 || ^7.0",
"zfcampus/zf-oauth2": "^1.4.0",
"unicaen/unicaen-ldap": "^2.0.0",
"unicaen/unicaen-ldap": "~2.1",
"jasig/phpcas": "^1.3.4"
},
"autoload": {
......
This diff is collapsed.
<?php
namespace UnicaenOauth\Cas;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
use phpCAS;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
class CasService implements ServiceLocatorAwareInterface
class CasService
{
use ServiceLocatorAwareTrait;
......
......@@ -11,6 +11,9 @@ class CasServiceFactory implements FactoryInterface
{
$config = $serviceLocator->get('config');
return new CasService($config['unicaen-oauth']['cas']);
$service = new CasService($config['unicaen-oauth']['cas']);
$service->setServiceLocator($serviceLocator);
return $service;
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment