Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi, I need a little help with JSF2 application which is run on Glassfish 3 and user authentication .
 
I want to use Form-Based Authentication with Container-managed security. I've got few tutorials but everyone is based on direct connect to database to verify user and password. (like this one: http://blog.eisele.net/2011/01/jdbc-security-realm-and-form-based.html[^])
 
In Container-managed security I've to configure my Glassfish Realms. Set user table, user name column, password column... even group table in my database. Then just use: j_username, j_password.
 
And my problem is: I don't want to direct access to the database. My application will use many database. And not always table with users will be named the same. So I have web-services, that get username,password and database name as parameters and return information whether the password is ok or not.
 
I want to use similar solution but without JDBC, and every access to the database will be via web-services. Is that possible to do that without specifying database tables and columns with users at the beginning and use for example web-services instead?
 
Thanks for help,
Regards,
Posted 10-Dec-12 6:50am
mnd017920

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 105
4 PIEBALDconsult 90
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100