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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -