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 ($config['always_authenticate_before_granting']) {
115
117
thrownewInvalidConfigurationException('The security option "always_authenticate_before_granting" cannot be used when "enable_authenticator_manager" is set to true. If you rely on this behavior, set it to false.');
@@ -77,7 +80,13 @@ private function getVariables(GuardEvent $event): array
77
80
$token = $this->tokenStorage->getToken();
78
81
79
82
if (null === $token) {
80
-
thrownewInvalidTokenConfigurationException(sprintf('There are no tokens available for workflow "%s".', $event->getWorkflowName()));
83
+
if (!$this->useAuthenticatorManager) {
84
+
thrownewInvalidTokenConfigurationException(sprintf('There are no tokens available for workflow "%s".', $event->getWorkflowName()));
85
+
}
86
+
if (!class_exists(NullToken::class)) {
87
+
thrownew \LogicException('The workflow guard feature is not compatible when "security.enable_authenticator_manager" is set to true with until 5.2.1.');
0 commit comments