Skip to content

SEC-1748: Success and failure handler in RememberMeAuthenticationFilter #1982

@spring-projects-issues

Description

@spring-projects-issues

Morgan (Migrated from SEC-1748) said:

In my system, we have a requirement that log the user's login action. The login actions includes two ways: form login and remember me.

For the form login, the simple way is provide a customized AuthenticationSuccessHandler and AuthenticationFailureHandler to the UsernamePasswordAuthenticationFilter.

But for remember me, I found only provided two empty methods: onSuccessfulAuthentication and onUnsuccessfulAuthentication. Yes, I can provide a customized RememberMeAuthenticationFilter and overwite these two mothods. But i found it not easy. Because that I have to define other beans which RememberMeAuthenticationFilter depend on... and cannot use the auto-config.

So I would like to suggest that set two success and failure handler, just like the UsernamePasswordAuthenticationFilter. Then what I need to do is just provide these two simply handlers.

Just a suggestion, it will be appreciated if you can give me a feedback. Thanks for this great product, and thanks for your contribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webAn issue in web modules (web, webmvc)status: duplicateA duplicate of another issuetype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions