Hello, I'm trying to use the authentification form method with
java ee. But I never can access my protected page. In my form I type "test" for username and "test" for password. The password in the table is the SHA-256 hash of the
word "test".
It's been 3 days I'm trying and I'm getting a bit insane.
I've found this post on Stackoverflow :
http://stackoverflow.com/questions/22731036/password-encryption-algorithm-in-glassfish-4 It's for the field Encrypt password algorithm. As you will see in the picture I posted below I put AES in this field. But I believe AES is an encryption that requires a key :
http://aes.online-domain-tools.com/ . Thus there is no key specified anywhere, furthermore I didn't encrypt my password ( as said it's only hashed ) so that may be why. The informations provided on the net are pretty sparse and I don't find the solution to my problem. I can't connect to my protected page.
jdbc connection pool:
jdbc ressources
jdbc realm:
user table:
> Persistence.xml
> web.xml:
> glassfish-web.xml
> login.xhtml: