Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with development and logging in with WDT #368

Closed
joshuataylor opened this issue Oct 12, 2011 · 6 comments
Closed

Issue with development and logging in with WDT #368

joshuataylor opened this issue Oct 12, 2011 · 6 comments

Comments

@joshuataylor
Copy link

So when you use the development environment, and logging into the system (say you went to index_dev.php/test), you'll be redirected to:
index_dev.php/_wdt/4e95412bc6871

Rather than the page (index_dev.php/test).

I expect this is because it thinks you want to log into the web profiler toolbar.

Anyone have a workaround for this?

@stof
Copy link
Member

stof commented Oct 12, 2011

You should not put the web debug toolbar in the scope of the firewall to avoid this.

@stof
Copy link
Member

stof commented Oct 16, 2011

Closing as it is not related to FOSUserBundle anyway but to SecurityBundle

@stof stof closed this as completed Oct 16, 2011
@andrewtch
Copy link

@joshuataylor, anyway you can always exclude wdt or profiler via adding dev firewall:

  dev:
      pattern:  ^/(_(profiler|wdt)|css|images|js)/
      security: false

@stof, don't you think that that should be added to docs in section like "securing whole app"?

@ccorliss
Copy link

ccorliss commented Jun 9, 2012

I added some rules in security.yml to resolve this. Under access_control:

  • { path: ^/_wdt, role: IS_AUTHENTICATED_ANONYMOUSLY }
  • { path: ^/_profiler, role: IS_AUTHENTICATED_ANONYMOUSLY }

@tamlyn
Copy link

tamlyn commented May 31, 2013

For the benefit of anyone else coming across this issue, be sure to add the dev firewall before your main firewall otherwise it will never match.

kikoval added a commit to kikoval/legislator that referenced this issue Mar 6, 2014
@gggeek
Copy link

gggeek commented May 16, 2016

Hello

is this related: FriendsOfSymfony/FOSHttpCache#287 ?
Shall I add a firewall rule for /_fos_user_context_hash ?

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

No branches or pull requests

6 participants