1
votes

I wrote custom user authenticator following the documentation: http://symfony.com/doc/current/cookbook/security/api_key_authentication.html and while i add in app/security.yml

    pattern: ^/
    stateless: true
    simple_preauth:
        authenticator: sso_authenticator

it says: InvalidConfigurationException: Unrecognized options "simple_preauth" under "security.firewalls.secured_area" what can couse that problem how to solve it ?

1
Which version of Symfony2 do you use? It's available only in 2.4Piotr Pasich
yes, this was a reason, i updated version from 2.3 to 2.4 now its ok! thanksvardius

1 Answers

3
votes

This problem is caused because of version. simple_preauth option is created in symfony 2.4. more reference SimplePreAuthenticationFactory.php