I'm trying to implement security layer with PAC4J framework, using users from DB. PAC4J documentation recomends DbProfileService, but I don't know how to use it.
- Where to define it? In the ConfigFactory?
final DirectBasicAuthClient directBasicAuthClient = new DirectBasicAuthClient(new DbProfileService());
- Where is the validation made? I mean user, password are correct? Maybe I shouldn't care and it is internaly done.