Custom User Authentication Extension
failcookie - 11 months ago
I am setting up a custom authenticator using the AuthenticatorExtension method. I have a
protected $provides = 'anomaly.module.users::authenticator.okta'; that references the extension
default.extension.okta_authenticator, but I am not being passed through the auth - or at least my DD isn’t catching it through the dispatch.
$provides not setup right? Or am I missing a key component to make sure it's included in the middle process?
On a somewhat related note, I am also trying to send users through an authenticate process in an API hit. I have my code setup like this.
$authenticator = new \Anomaly\UsersModule\User\UserAuthenticator(); $authenticator->attempt([ 'email' => $data['email'], 'password' => $data['password'] ]);
But I am receiving an error
Type error: Too few arguments to function Anomaly\UsersModule\User\UserAuthenticator::__construct(), 0 passed in and exactly 4 expected. Is that not the right way to call the UserAuthenticator?