Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

RuntimeException in AbstractAuthenticationListener.php #22

Closed
FranckParis opened this issue Oct 11, 2016 · 1 comment
Closed

RuntimeException in AbstractAuthenticationListener.php #22

FranckParis opened this issue Oct 11, 2016 · 1 comment

Comments

@FranckParis
Copy link

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.

@DerManoMann
Copy link
Owner

no activity so closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants