在hwi_oauth中,我可以设置param以及失败重定向路径。我想重定向到referer。我可以在hwi中设置它还是必须创建failure_handler
?
答案 0 :(得分:0)
failure_handler
是必需的。
例如:
<?php
class OAuthFailureHandler implements AuthenticationFailureHandlerInterface {
public function onAuthenticationFailure( Request $request, AuthenticationException $exception) {
if ( !$exception instanceof AccountNotLinkedException ) {
throw $exception;
}
}