This content has been marked as final. Show 4 replies
Yes, you can extend the oracle.jheadstart.controller.jsf.bean.LoginBean and override the doCustomAuthentication method and stick in an encrypter function (just remember to add the same encrypter function to the user creation process that inserts/updates the password).1 person found this helpful
Not sure if that's the only way, but I've used the same custom class in 4 JHS projects and it works fine.
What is the best way to do the user creation override if using the JhsModel? To be honest, I feel like creating a separate Model that we can do whatever we want with, such as adding the hashing to the entity object for JHS_USERS. Have you ever modified the Model supplied from JHS? Or do you just create your own model from an admin perspective.
If you can help me with part two, that would be great and I can mark this question as answered!
I think I know the answer to part 2. We need to use ADF BC Substitutions. I see that is what the JDev team also recommends. Doing it this way, I could extend off the base class, add the one requirement to hash the value and update the model appropriately.
Thanks again for pointing me in the right direction.