Loading src/UnicaenAuthentification/Provider/Identity/Db.php +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ class Db extends AuthenticationIdentityProvider implements ChainableProvider, \B } /* Injection des rôles par filtre LDAP */ $ldapRoles = $this->getRoleService()->getRoles(); $ldapRoles = $this->roleService->findAll(); foreach ($ldapRoles as $role) { if ($role->getLdapFilter() && !in_array($role, $roles)) { if ($this->roleMatches($role, $ldapDn)) { Loading src/UnicaenAuthentification/Service/Traits/AuthorizeServiceAwareTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenAuthentification\Service\Traits; use UnicaenAuthentification\Service\AuthorizeService; use RuntimeException; use UnicaenPrivilege\Service\AuthorizeService; /** * Description of AuthorizeServiceAwareTrait Loading src/UnicaenAuthentification/Service/UserContext.php +3 −5 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ use UnicaenAuthentification\Authentication\Storage\Usurpation; use UnicaenUtilisateur\Acl\NamedRole; use UnicaenUtilisateur\Entity\Db\AbstractUser; use UnicaenUtilisateur\Entity\Db\AbstractRole; use UnicaenUtilisateur\Entity\Db\Role; use UnicaenUtilisateur\Entity\Db\RoleInterface; use UnicaenAuthentification\Entity\Ldap\People; use UnicaenAuthentification\Entity\Shibboleth\ShibUser; use UnicaenAuthentification\Event\UserRoleSelectedEvent; Loading @@ -21,7 +21,6 @@ use UnicaenAuthentification\Provider\Identity\Chain; use Zend\Authentication\AuthenticationService; use Zend\EventManager\EventManagerAwareInterface; use Zend\EventManager\EventManagerAwareTrait; use Zend\Permissions\Acl\Role\RoleInterface; use ZfcUser\Entity\UserInterface; /** Loading Loading @@ -156,8 +155,7 @@ class UserContext extends AbstractService implements EventManagerAwareInterface /** * @param string $roleId * * @return Role * @return RoleInterface|null */ public function getIdentityRole($roleId) { Loading @@ -174,7 +172,7 @@ class UserContext extends AbstractService implements EventManagerAwareInterface * * Les clés du tableau sont les ID de rôles, les valeurs sont les objets Role * * @return Role[] * @return RoleInterface[] */ public function getIdentityRoles() { Loading Loading
src/UnicaenAuthentification/Provider/Identity/Db.php +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ class Db extends AuthenticationIdentityProvider implements ChainableProvider, \B } /* Injection des rôles par filtre LDAP */ $ldapRoles = $this->getRoleService()->getRoles(); $ldapRoles = $this->roleService->findAll(); foreach ($ldapRoles as $role) { if ($role->getLdapFilter() && !in_array($role, $roles)) { if ($this->roleMatches($role, $ldapDn)) { Loading
src/UnicaenAuthentification/Service/Traits/AuthorizeServiceAwareTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ namespace UnicaenAuthentification\Service\Traits; use UnicaenAuthentification\Service\AuthorizeService; use RuntimeException; use UnicaenPrivilege\Service\AuthorizeService; /** * Description of AuthorizeServiceAwareTrait Loading
src/UnicaenAuthentification/Service/UserContext.php +3 −5 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ use UnicaenAuthentification\Authentication\Storage\Usurpation; use UnicaenUtilisateur\Acl\NamedRole; use UnicaenUtilisateur\Entity\Db\AbstractUser; use UnicaenUtilisateur\Entity\Db\AbstractRole; use UnicaenUtilisateur\Entity\Db\Role; use UnicaenUtilisateur\Entity\Db\RoleInterface; use UnicaenAuthentification\Entity\Ldap\People; use UnicaenAuthentification\Entity\Shibboleth\ShibUser; use UnicaenAuthentification\Event\UserRoleSelectedEvent; Loading @@ -21,7 +21,6 @@ use UnicaenAuthentification\Provider\Identity\Chain; use Zend\Authentication\AuthenticationService; use Zend\EventManager\EventManagerAwareInterface; use Zend\EventManager\EventManagerAwareTrait; use Zend\Permissions\Acl\Role\RoleInterface; use ZfcUser\Entity\UserInterface; /** Loading Loading @@ -156,8 +155,7 @@ class UserContext extends AbstractService implements EventManagerAwareInterface /** * @param string $roleId * * @return Role * @return RoleInterface|null */ public function getIdentityRole($roleId) { Loading @@ -174,7 +172,7 @@ class UserContext extends AbstractService implements EventManagerAwareInterface * * Les clés du tableau sont les ID de rôles, les valeurs sont les objets Role * * @return Role[] * @return RoleInterface[] */ public function getIdentityRoles() { Loading