Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
06d9620f
Commit
06d9620f
authored
Mar 29, 2018
by
Bertrand Gauthier
Browse files
Correction : appel de userAuthenticated() à la main plutôt que via l'event manager
parent
bd271be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Authentication/Adapter/Cas.php
View file @
06d9620f
...
...
@@ -94,7 +94,12 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
$e
->
setCode
(
AuthenticationResult
::
SUCCESS
)
->
setMessages
([
'Authentication successful.'
]);
$this
->
getEventManager
()
->
trigger
(
'userAuthenticated'
,
$e
);
// recherche de l'individu dans l'annuaire LDAP, il existe forcément puisque l'auth CAS a réussi.
$ldapPeople
=
$this
->
getLdapPeopleMapper
()
->
findOneByUsername
(
$identity
);
/* @var $userService User */
$userService
=
$this
->
getServiceManager
()
->
get
(
'unicaen-auth_user_service'
);
$userService
->
userAuthenticated
(
$ldapPeople
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment