Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Cannot login with form authentification. Security realms.

Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic