Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Davide Newsgroups: it.comp.java Subject: Re: Spring security e JPA Date: Sat, 26 Mar 2016 20:45:01 +0100 Organization: Netfront http://www.netfront.net/ Lines: 22 Message-ID: References: NNTP-Posting-Host: 79.17.189.137 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1459021427 53383 79.17.189.137 (26 Mar 2016 19:43:47 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sat, 26 Mar 2016 19:43:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 In-Reply-To: Xref: csiph.com it.comp.java:8895 Il 26/03/2016 20:23, rootkit ha scritto: > Il giorno giovedì 24 marzo 2016 21:27:23 UTC+1, Davide ha scritto: >> Salve, >> sto sviluppando un'applicazione java ee che usa spring security e jpa, i >> dati degli utenti sono salvati su un database mysql. Spring security >> vuole un bean che implementa l'interfaccia >> org.springframework.security.core.userdetails.UserDetails che contiene >> varie informazioni tra cui lo username e la password restituito da un >> metodo dell'interfaccia >> org.springframework.security.core.userdetails.UserDetailsService, il >> problema è che per poter passare queste informazioni (username e >> password) a spring, sul database le password devono essere salvate in >> chiaro, ci sono alternative? > > in realtà basta specificare il password encoder all'authentication provider in > modo quasi del tutto dichiarativo. > Avresti un link con un esempio? --- news://freenews.netfront.net/ - complaints: news@netfront.net ---