Skip to content

@CurrentUser annotation, authenticated user controllers, Signin controller.  #31

@a-korzhov

Description

@a-korzhov

1.Could you tell me the reason of @currentuser annotation, if there is no logic implemented for that? It is like empty annotation that nothing changes?
2. Why you are autowiring AuthenticationManager to controllers? You could just add Authentication to arguments of controllers, where you need for authenticated users. And from that Authentication get user data.
3. And why you are creating redundunt login controller, if Spring Security provides that? You need just add filter method from "extends UsernamePasswordAuthenticationFilter" and override Authentication attemptAuthentication. There you are getting user and authenticate him with username and password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions