Hi Cas Community,
I am trying to setup a cas server with query and encode database authentication handler. In the current application, the encrypted password is calculated with 20 runs of SHA-512 with an APPENDED salt. However since this encoding is delegated to Apache Shiro's DefaultHashService, it is not possible to change this hashing behavior.
If the hashing behavior and/or configuration of private and public salts does nto meet your needs, a extension can be developed to specify alternative methods of encoding and digestion of the encoded password.
So this is exactly what I want to achieve, however, what I can understand from the source code it is not possible to dynamically set the extension. It is hardcoded
here.
What I understand from the rest of the source code is that you need to create a bean to resolve the requested hash service into an actual class. But before I dive into java programming I wanted to hear your opinions, maybe I am missing something completely here.
Thanks!