Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Cannot login with form authentification. Security realms.

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:

Tell me how it all turns out. Here is a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic