ratcashdev / authenticroast

Automatically exported from code.google.com/p/authenticroast
1 stars 0 forks source link

Form-based login against a database table #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not an issue, rather a request for guidance.
What is the right way of implementing a FORM-based authenticator, especially 
the method checkCredentials()?
It seems I can't inject any kind of BEANS into this class (CDI or EJB) and thus 
I can't reach my database records. Looking up the beanManager is also 
unreliable.

Is direct JDBC the only possibility apart from configuring a JDBC realm in the 
container (actually would this even work properly when using JASPIC)?

Original issue reported on code.google.com by develo...@ratcash.net on 11 Mar 2015 at 1:45