cnam/security-jwt-service-provider

Success and Failure Handlers not Called

ananda-agrawal opened this issue · 0 comments

How to make the Success and Failure Handlers get called upon authentication success/failure.
I setup according to the example provided but the specified handlers have no effect ..

` $app['security.authentication.success_handler.secured'] = function () use ($app) {
return new Authentication\AuthenticationSuccessHandler($app['security.http_utils'], []);
};

    $app['security.authentication.failure_handler.secured'] = function () use ($app) {
        return new Authentication\AuthenticationFailureHandler($app['request'], $app['security.http_utils'], []);
    };`