• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Cannot login with form authentification. Security realms.

 
Ranch Hand
Posts: 99
5
  • 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 : 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:

 
The only cure for that is hours of television radiation. And this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic