МФ
main:
anonymous: true
lazy: true
form_login:
login_path: login
check_path: login
Size: a a a
МФ
АС
AuthenticationEntryPoint implements AuthenticationEntryPointInterface
public function start(Request $request, AuthenticationException $authException = null): Response
{
return new RedirectResponse($this->urlGenerator->generate('login'));
}
Но у меня кастомная форма, если стандартная то выше ответ МаксимаAT
main:
lazy: true
provider: ldap_provider
form_login_ldap:
login_path: app_login
check_path: app_login
logout:
path: app_logout
custom_authenticator: App\Security\LdapAuthenticator
AT
anonymous: true
, там ошибка, что это уже не поддерживается менеджеромКГ
AT
АС
КГ
AT
КГ
АС
class AuthenticationEntryPoint implements AuthenticationEntryPointInterface
{
public function start(Request $request, AuthenticationException $authException = null): Response
{
// делаем редирект на страницу с формой входа
return new RedirectResponse($this->urlGenerator->generate('login'));
}
}
КГ
АС
AT
МФ
АС
// remember to also configure the entry_point if theЕсли реализуется касмтомный аутентификатор то нужно ещё entyPoint свой, я и на github искал, там всё тоже. Без entyPoint редиректа нет.
// authenticator implements AuthenticatorEntryPointInterface
// ->entryPoint(App\Security\CustomFormLoginAuthenticator::class)
АС
МФ
КГ
AD