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

Exception after update to current version #58

Closed Lausebengel closed 9 years ago

Lausebengel commented 9 years ago

Hello !

EscapeWSSEAuthenticationBundle worked great for several months now, but after I updated to the latest version I get this error message if I try to clear the symfony cache:

[Symfony\Component\Debug\Exception\ContextErrorException]
Catchable Fatal Error: Argument 2 passed to MyAuthenticationProvider::__construct() must implement interface Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface, string given, called in /cache-path/ap_DevDebugProjectContainer.php on line 1879 and defined

Do you have an idea how to fix this ?

Thanks in advance !

Lausebengel commented 9 years ago

OK, I had to insert the provider key in the constructor of my authentication provider. But now I have an other issue in the log file:

No Authentication Provider found for token of class "Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken

djoos commented 9 years ago

Hi @oliver13,

version 2.0.0 introduced some changes for people who are making use of custom authentication providers.

Could you double-check your auth provider's supports-method with the one in the bundle?

Alternatively, is there any way you could ping a gist with your auth provider - then I'll have a quick look...

Thanks in advance!

Kind regards, David

Lausebengel commented 9 years ago

Hello @djoos,

thank you for the fast answer and sorry for my late response. I have managed to get it to work again by checking the provider's methods in the bundle.

with kind regards

djoos commented 9 years ago

Perfect, thanks for your feedback @oliver13!

Kind regards, David