Release 2.13 (#4659)

This commit is contained in:
Kevin Papst
2024-03-10 15:35:59 +01:00
committed by GitHub
parent a78e8ed8c4
commit dee90bb15e
79 changed files with 1019 additions and 932 deletions

View File

@@ -20,8 +20,8 @@ use Symfony\Component\HttpFoundation\RequestStack;
class SamlAuthFactory
{
public function __construct(
private RequestStack $request,
private SamlConfigurationInterface $configuration
private readonly RequestStack $request,
private readonly SamlConfigurationInterface $configuration
) {
}

View File

@@ -35,12 +35,12 @@ class SamlAuthenticator extends AbstractAuthenticator
];
public function __construct(
private HttpUtils $httpUtils,
private SamlAuthenticationSuccessHandler $successHandler,
private SamlAuthenticationFailureHandler $failureHandler,
private SamlAuthFactory $samlAuthFactory,
private SamlProvider $samlProvider,
private SamlConfigurationInterface $configuration
private readonly HttpUtils $httpUtils,
private readonly SamlAuthenticationSuccessHandler $successHandler,
private readonly SamlAuthenticationFailureHandler $failureHandler,
private readonly SamlAuthFactory $samlAuthFactory,
private readonly SamlProvider $samlProvider,
private readonly SamlConfigurationInterface $configuration
) {
}

View File

@@ -13,7 +13,7 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
final class SamlBadge implements BadgeInterface
{
public function __construct(private SamlLoginAttributes $samlToken)
public function __construct(private readonly SamlLoginAttributes $samlToken)
{
}

View File

@@ -15,7 +15,7 @@ use Symfony\Component\Security\Http\Event\LogoutEvent;
final class SamlLogoutSubscriber implements EventSubscriberInterface
{
public function __construct(private SamlAuthFactory $samlAuth)
public function __construct(private readonly SamlAuthFactory $samlAuth)
{
}
@@ -26,7 +26,7 @@ final class SamlLogoutSubscriber implements EventSubscriberInterface
];
}
public function logout(LogoutEvent $event)
public function logout(LogoutEvent $event): void
{
$token = $event->getToken();

View File

@@ -22,9 +22,9 @@ final class SamlProvider
* @param UserProviderInterface<User> $userProvider
*/
public function __construct(
private UserRepository $repository,
private UserProviderInterface $userProvider,
private SamlConfigurationInterface $configuration
private readonly UserRepository $repository,
private readonly UserProviderInterface $userProvider,
private readonly SamlConfigurationInterface $configuration
) {
}
@@ -123,7 +123,7 @@ final class SamlProvider
$user->setAuth(User::AUTH_SAML);
}
private function getPropertyValue(SamlLoginAttributes $token, $attribute)
private function getPropertyValue(SamlLoginAttributes $token, $attribute): string
{
$results = [];
$attributes = $token->getAttributes();