KnpLabs/KnpOAuthBundle — Issue #9: Unrecognized options "oauth_entity" under "security.providers.secured_area" 
Author: Ephraim-at-work
Created: 2012-01-19 12:13:13+00:00
State: open

In my security yml I configurated

security:
factories:
- "%kernel.root_dir%/../vendor/bundles/Knp/Bundle/OAuthBundle/Resources/config/security_factories.xml"
- "%kernel.root_dir%/../vendor/bundles/Fp/OpenIdBundle/Resources/config/security_factories.xml"

encoders:
Symfony\Component\Security\Core\User\User: plaintext

providers:
fos_userbundle:
id: fos_user.user_manager
secured_area:
oauth_entity:
class: MyACLBundle:GoogleUser
property: name

firewalls:
oauth_login:
pattern: ^/google/login$
security: false
oauth_login_check:
pattern: ^/google/login_check$
security: false
oauth_area:
pattern: ^/google/
oauth:
oauth_provider: google
client_id: **************.apps.googleusercontent.com
secret: **************
check_path: /google/login_check
login_path: /google/login
failure_path: /
scope: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
openid_area:
pattern: ^/openid
anonymous: ~
logout:
path: /openid/logout
target: /
openid: true

But when i run the application, returned an error message

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "oauth_entity" under "security.providers.secured_area"

How can I fix?
Tnx!