Java EE (J2EE) Tutorial for beginners Part17 - Implementing Spring Security database authentication

preview_player
Показать описание
Java EE (J2EE) Tutorial for beginners Part17 - We implemented Spring Security DAO authentication and used Web Flow to control execution.

Source code:

Java EE (J2EE) Tutorial for beginners in one integration: Spring Framework + Spring Webflow + Spring Security + JPA (Hibernate) + JSF 2.0 (PrimeFaces) + Apache Maven 2 + Apache Tomcat + Subclipse + Oracle RDBMS + Eclipse IDE
Рекомендации по теме
Комментарии
Автор

Great Effort! Complex but nicely designed and explained.

Many Thanks!

venkatramanmn
Автор

Worked through this carefully - great stuff Arthur.
Many Thanks again.

robertcasper
Автор

Hi! Just wanted to thank you for the amazing tutorial, been watching this in one shot from the begging breathlessly, by far the most thorough tutorial I have seen to date!

Just an idea.. I thought about a way to break the authentication so we can test the authentication exception message - put a breakpoint immediately after committing the new user to the db, go to the database and remove the newly created user manually (or just replace first/last name chars with wrong ascii .. so db retrieve and string cast will fail), then step over the breakpoint..

udik
Автор

you the best many thanks to you , keep it up dude ^_^, if you have a facebook account please post it so people can add you and ask for your advises :)

LegendaryMan
Автор

Awesome stuff thank you very much for such an informative tuto series. please explain how do this app using JSF managed bean clasess and session beans without using Spring. I am using Netbean's CRUD generation feature and then convert it to primefaces based JSF app. Anyway it would be nice if you can do tuto about how to create different access  privileges (admin, clerk, manager etc.) using those technologies using Glassfish.
thanks great work keep it up.

damithgunarathna
Автор

Thank you for this tuto. I am having the "Bad Credential" error too. I am using bcrypt for passwordencoder and mysql database. Please, how to get rid of this error? thanks again

ousmanegueye
Автор

Hi Arthur,
in 33:30, why do you make the code dependent on Faces ?
Shouldn't the be decoupled from the GUI ?
Is it possible instead to throw an exception and let the presentation layer handle and display that appropriately?

echelecopao
Автор

I've done tutorial number 18 also. Cannot get rid of the error. I think problem is in th md5 encoder, because i get strange values in my db (values are different than those in user entity when i do debug). Plus, every time i try to sign in, password value (stored in db) changes. Little help please...

nikolastanar
Автор

How to fix the BAD CREDNTIALS issue, if so how; I have the same problem.

chadmorris
Автор

why do you always delete @Override annotation? :)

Hepward
Автор

Cannot authenticate after signing up. Says: "Bad credentials", thats exception message delivered on ui. I don't know why I cannot authenticate. User gets persisted to the database. I've checked, authentication manager is not null. Any clue?

nikolastanar
Автор

Hi, Arthur 
I am getting the same "bad credentials" error .. we require ur precious advice so plz do reply :)

KamleshSharma-dzns
Автор

Hi, I have this error: 
could not extract ResultSet.
Please help me

benheniameriem
Автор

 
Cannot authenticate after signing up. Says: "Bad credentials", thats exception message delivered on ui. but when passwordfield is to simple plaintext hash="plaintext"/>) then it work...
but any one help

rajwanahmed
Автор

For the "Bad credentials" error, what I've done is move the encription lines:
     PasswordEncoder crypto = new Md5PasswordEncoder();
     crypto.encodePassword(userEntity.getPassword(), null)
 from UserEntity.setPassword to UserServiceImpl.createUser method. For some reason the UserEntity.setPassword method is invoked with the already hashed password and cause a password mistmatch.

 Hope it helps

danisida
Автор

Большое спасибо за видео.

Также хочу попросить у тебя выложить урок или обновить архив с примером как работать с таблицей в основном окне посл регистрации в программе.

Я просто уже вторую неделю с этим борюсь помоги пожалуйста.

DiVampireHunter
Автор

I am having the absoliutely toughest time of it i n trying to install the Glassfish 4 server into my copy of Eclipse Helios! can someone please help me with this?

steveburrus
visit shbcf.ru