Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot login with form authentification. Security realms.  RSS feed

Cedric Bosch
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 : 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 : . 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:

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!