I need to extend sfGuard plugins for an external authentication method.
In apps/fe/lib I create the file jAuth.class.php:
- Code: Select all
class jAuth {
public static function checkPassword($username, $password):
{
return true;
}
}
In apps/config/app.yml I insert:
- Code: Select all
all:
sf_guard_plugin:
check_password_callable: [jAuth, checkPassword]
in apps/config/settings.yml:
- Code: Select all
all:
.settings:
enabled_modules: [default, sfGuardAuth]
.actions:
login_module: sfGuardAuth
login_action: signin
But seems that's jAuth is not called.
Any ideas?
Thanks in advanced.
v.
