You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$passportinstanceof UserPassportInterface || !$passport->hasBadge(PasswordCredentials::class)) {
54
50
thrownew \LogicException(sprintf('LDAP authentication requires a passport containing a user and password credentials, authenticator "%s" does not fulfill these requirements.', \get_class($event->getAuthenticator())));
@@ -70,8 +66,8 @@ public function onCheckPassport(CheckPassportEvent $event)
70
66
}
71
67
72
68
$user = $passport->getUser();
73
-
if (!$userinstanceofPasswordAuthenticatedUserInterface) {
74
-
trigger_deprecation('symfony/ldap', '5.3', 'Not implementing the "%s" interface in class "%s" while using password-based authenticators is deprecated.', PasswordAuthenticatedUserInterface::class, get_debug_type($user));
69
+
if (!$userinstanceofLdapUser) {
70
+
return;
75
71
}
76
72
77
73
/** @var LdapInterface $ldap */
@@ -104,7 +100,6 @@ public function onCheckPassport(CheckPassportEvent $event)
@@ -93,7 +95,7 @@ public function testInvalidLdapServiceId()
93
95
$this->expectExceptionMessage('Cannot check credentials using the "not_existing_ldap_service" ldap service, as such service is not found. Did you maybe forget to add the "ldap" service tag to this service?');
0 commit comments