symfony - Can I make a rule in security.yml that redirect me from login form to defined URI/patch only if I came from other defined URI/patch? -
can make rule in security.yml redirect me login form defined uri/patch if came other defined uri/patch ?
"if come login form uri/path named x after authorization redirected uri/path named y "
in standard symfony edition, can not configure feature, can create custom success handler (symfony\component\security\http\authentication\authenticationsuccesshandlerinterface
) called after complete authorization via form or adapter , inject handler configuration (firewalls.form_login.success_handler
).
in own handler can return redirectresponse
redirect user page.
Comments
Post a Comment