Hi ! I'm sorry if this isn't the right place to look for some help.
I'm trying to make the ldap-auth-service-provider work in my Silex project and get the error :
RuntimeException in AbstractAuthenticationListener.php
"This authentication method requires a session."
I think I don't properly use or installed your provider and don't know what's the source of this problem :
I have updated my project to Silex 2.0 (Originally in 1.3) and Php 5.5
Installed via Composer your service provider
Copied in my app.php file the lines to use the provider and register it
Set Ldap parameters
Concerning the forms and routes, I didn't really know what to do :
I've tried to create a route from my main layout to a login.html.twig form where I set the form action to "login_check_ldap", as it is set in the app.php code section.
I guess it's absolutely not how it works though ...
Something is strange also : the "$app->register(new SecurityServiceProvider(), array(..." line generates a "class Class 'SecurityServiceProvider' not found" error.
I have to add Silex\Provider\ in order to make the rest of the application work.
So many questions, I'm new with Symphony/Silex security and the Silex documentation isn't always really clear about custom providers.
Thanks in advance for your help and the time you gave to my request,
Have a nice day.
Hi ! I'm sorry if this isn't the right place to look for some help. I'm trying to make the ldap-auth-service-provider work in my Silex project and get the error :
RuntimeException in AbstractAuthenticationListener.php "This authentication method requires a session."
I think I don't properly use or installed your provider and don't know what's the source of this problem :
Concerning the forms and routes, I didn't really know what to do :
I guess it's absolutely not how it works though ...
Something is strange also : the "$app->register(new SecurityServiceProvider(), array(..." line generates a "class Class 'SecurityServiceProvider' not found" error. I have to add Silex\Provider\ in order to make the rest of the application work.
So many questions, I'm new with Symphony/Silex security and the Silex documentation isn't always really clear about custom providers.
Thanks in advance for your help and the time you gave to my request, Have a nice day.