java - Spring security 3 : Save informations about authentification in database -
i need save informations user when authentificated ip adress , authentification date , other stuff database. in other words want keep connections history. using custom authentification provider, implementation of userdetailsservice dont know put code of saving these informations.
any suggestions?
since abstractauthenticationprocessingfilter
implements applicationeventpublisheraware
, fires event interactiveauthenticationsuccessevent
on successful authentication, need listen event , update database. keep database code clean , decoupled security code.
Comments
Post a Comment