Fixed error preventing the service container from compiling

This commit is contained in:
Jan Böhmer 2023-05-27 20:46:02 +02:00
parent 55641a234c
commit c24019fd57
5 changed files with 10 additions and 9 deletions

View file

@ -1,4 +1,4 @@
hslavich_saml_sp:
resource: "@HslavichOneloginSamlBundle/Resources/config/routing.yml"
nbgrp_saml:
resource: "@NbgrpOneloginSamlBundle/Resources/config/routes.php"
# Only load the SAML routes if SAML is enabled
condition: "env('SAML_ENABLED') == '1' or env('SAML_ENABLED') == 'true'"

View file

@ -30,8 +30,8 @@ use App\Security\Interfaces\HasPermissionsInterface;
use App\Validator\Constraints\Selectable;
use App\Validator\Constraints\ValidPermission;
use App\Validator\Constraints\ValidTheme;
use Hslavich\OneloginSamlBundle\Security\User\SamlUserInterface;
use Jbtronics\TFAWebauthn\Model\LegacyU2FKeyInterface;
use Nbgrp\OneloginSamlBundle\Security\User\SamlUserInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Serializer\Annotation\Groups;
use Webauthn\PublicKeyCredentialUserEntity;
@ -967,7 +967,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
public function setSamlAttributes(array $attributes)
public function setSamlAttributes(array $attributes): void
{
//When mail attribute exists, set it
if (isset($attributes['email'])) {

View file

@ -54,7 +54,7 @@ class LabelResponse extends Response
parent::__construct($content, $status, $headers);
}
public function setContent($content): self
public function setContent($content): static
{
parent::setContent($content);
@ -64,7 +64,7 @@ class LabelResponse extends Response
return $this;
}
public function prepare(Request $request): self
public function prepare(Request $request): static
{
parent::prepare($request);

View file

@ -24,6 +24,7 @@ namespace App\Repository;
use App\Entity\UserSystem\User;
use Doctrine\ORM\NonUniqueResultException;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
@ -82,7 +83,7 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU
}
}
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
public function upgradePassword(UserInterface|PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
{
if ($user instanceof User) {
$user->setPassword($newHashedPassword);

View file

@ -23,8 +23,8 @@ namespace App\Security;
use App\Entity\UserSystem\Group;
use App\Entity\UserSystem\User;
use Doctrine\ORM\EntityManagerInterface;
use Hslavich\OneloginSamlBundle\Security\Http\Authenticator\Token\SamlToken;
use Hslavich\OneloginSamlBundle\Security\User\SamlUserFactoryInterface;
use Nbgrp\OneloginSamlBundle\Security\Http\Authenticator\Token\SamlToken;
use Nbgrp\OneloginSamlBundle\Security\User\SamlUserFactoryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
use Symfony\Component\Security\Core\User\UserInterface;