djoos / EscapeWSSEAuthenticationBundle

Symfony bundle to implement WSSE authentication
http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html
137 stars 59 forks source link

InvalidConfigurationException: Unrecognized options "provider_class, listener_class" under "escape_wsse_authentication" #18

Closed daifma closed 11 years ago

daifma commented 11 years ago

I'm using Symfony 2.0.22. when I update the config.yml as it is in the documentation I have this error

InvalidConfigurationException: Unrecognized options "provider_class, listener_class" under "escape_wsse_authentication"

How can I solve this ? Thank U :)

djoos commented 11 years ago

Hi Daif,

first off: you are using the 2.0.x-branch, right?

In the README (https://github.com/escapestudios/EscapeWSSEAuthenticationBundle/blob/2.0.x/README.md) of that branch the steps to get the bundle up and running, but it seems that the configuration-step is wrong...

Instead of...

# Escape WSSE authentication configuration
escape_wsse_authentication:
    provider_class: Escape\WSSEAuthenticationBundle\Security\Core\Authentication\Provider\Provider
    listener_class: Escape\WSSEAuthenticationBundle\Security\Http\Firewall\Listener

...could you try:

# Escape WSSE authentication configuration
escape_wsse_authentication:
    authentication_provider_class: Escape\WSSEAuthenticationBundle\Security\Core\Authentication\Provider\Provider
    authentication_listener_class: Escape\WSSEAuthenticationBundle\Security\Http\Firewall\Listener

If that works, I'll update the README... Thanks in advance for your feedback!

Kind regards, David

daifma commented 11 years ago

Thanks..it's working

Sorry for this inconvience.

djoos commented 11 years ago

No problem, thanks for your feedback! I'll update the README.md-file with the correct config...

Have a great day!

Kind regards, David