[TASK] Write proper skeleton code for userAuthHooks

The code does not work yet, because rsaauth prevents it from being
called.