Hello,
It is possible to configure the identity resolver.
The configuration key “userModel” can be customized for your purposes.
See also Identifiers - 2.x
Example from my application - here I used my “adminstrators” model:
public function getAuthenticationService(ServerRequestInterface $request): AuthenticationServiceInterface
{
...
// Load identifiers
$service->loadIdentifier('Authentication.Password', [
'resolver' => [
'className' => 'Authentication.Orm',
'userModel' => 'Administrators',
],
'fields' => [
'username' => ['username', 'email'],
'password' => 'password',
]
]);
...
}