You can alter the behavior of many actions by overriding the repository classes. There are several repository interfaces that you may use to create unique functionality.
You might also think about altering the default implementations of the following classes:
You should update the config/ssofy-server.php
configuration file to point to your implementation once you have a customized or extended repository.
The Repositories section of the config file is where you need to refer to in order to bind your implementation to the target contract.