blossom-project / blossom

Blossom is a Java framework based on Spring-Boot which enables you to realize your projects quickly and smoothly. It comes with several modules and tools made to ease and speed up your development process.
http://blossom-project.com
Apache License 2.0
21 stars 21 forks source link

BlossomAuthenticationSuccessHandlerImpl should be more flexible #200

Open jpinta opened 5 years ago

jpinta commented 5 years ago

In the security chain, there is the BlossomAuthenticationSuccessHandlerImpl which only update the user's last connection. The way it is done is not very flexible and doesnt allow easily another kind of user to log on (the user HAVE TO extends the CurrentUser). Just an if condition should resolve the problem :) This way, just a class that extends the BlossomAuthenticationSuccessHandlerImpl can update his user last connection and then continue the chain.