Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
auth
Commits
5ca0247c
You need to sign in or sign up before continuing.
Commit
5ca0247c
authored
5 years ago
by
David Surville
Browse files
Options
Downloads
Patches
Plain Diff
Adapter Cas : possibilité d'injecter tout type de router
parent
431bbc99
No related branches found
No related tags found
No related merge requests found
Pipeline
#4767
passed
5 years ago
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenAuth/Authentication/Adapter/Cas.php
+11
-6
11 additions, 6 deletions
src/UnicaenAuth/Authentication/Adapter/Cas.php
with
11 additions
and
6 deletions
src/UnicaenAuth/Authentication/Adapter/Cas.php
+
11
−
6
View file @
5ca0247c
...
...
@@ -14,7 +14,8 @@ use Zend\EventManager\EventInterface;
use
Zend\EventManager\EventManager
;
use
Zend\EventManager\EventManagerAwareInterface
;
use
Zend\EventManager\EventManagerInterface
;
use
Zend\Router\Http\TreeRouteStack
;
use
Zend\Router\RouteInterface
;
use
Zend\Router\RouteStackInterface
;
use
ZfcUser\Authentication\Adapter\AbstractAdapter
;
use
ZfcUser\Authentication\Adapter\ChainableAdapter
;
...
...
@@ -64,14 +65,14 @@ class Cas extends AbstractAdapter implements EventManagerAwareInterface
}
/**
* @var
Tree
Route
St
ac
k
* @var Route
Interf
ac
e
*/
private
$router
;
/**
* @param
Tree
Route
St
ac
k
$router
* @param Route
Interf
ac
e
$router
*/
public
function
setRouter
(
Tree
Route
St
ac
k
$router
)
public
function
setRouter
(
Route
Interf
ac
e
$router
)
{
$this
->
router
=
$router
;
}
...
...
@@ -264,10 +265,14 @@ class Cas extends AbstractAdapter implements EventManagerAwareInterface
}
/**
* @param
Tree
Route
St
ac
k
$router
* @param Route
Interf
ac
e
$router
*/
public
function
reconfigureRoutesForCasAuth
(
Tree
Route
St
ac
k
$router
)
public
function
reconfigureRoutesForCasAuth
(
Route
Interf
ac
e
$router
)
{
if
(
!
$router
instanceof
RouteStackInterface
)
{
return
;
}
$router
->
addRoutes
([
// remplace les routes existantes (cf. config du module)
'zfcuser'
=>
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment