Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
2a2d52e0
Commit
2a2d52e0
authored
Sep 17, 2014
by
David Surville
Browse files
Modification liée à une boucle infinie lors de l'authentification CAS
parent
4856973e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Authentication/Adapter/Cas.php
View file @
2a2d52e0
...
...
@@ -57,7 +57,15 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
*/
public
function
authenticate
(
AuthEvent
$e
)
{
if
(
$e
->
getIdentity
())
{
// if ($e->getIdentity()) {
// return;
// }
/* DS : modification liée à une boucle infinie lors de l'authentification CAS */
if
(
$this
->
isSatisfied
())
{
$storage
=
$this
->
getStorage
()
->
read
();
$e
->
setIdentity
(
$storage
[
'identity'
])
->
setCode
(
AuthenticationResult
::
SUCCESS
)
->
setMessages
(
array
(
'Authentication successful.'
));
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment