Skip to content

[Security] The 'entry_point' setting is well-hidden, error message not helpful #14704

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

Closed
aleksblendwerk opened this issue Dec 15, 2020 · 1 comment
Labels

Comments

@aleksblendwerk
Copy link

Maybe I chose an over-complicated implementation (over here) and got a rather unusual use case (is it even?) - a login form that is displayed by an ordinary controller and a login action that expects the login attempt data as JSON.

Before manually defining an entry_point, I just kept getting an AccessDeniedException along with the message Full authentication is required to access this resource - which wasn't very helpful - whenever I visited an existing URL without being logged in.

It took me a long time until I finally found out that I have to define an entry_point and that this setting even exists because there is no mention of it on the Security docs entry point (!) at https://symfony.com/doc/current/security.html.

Not sure what could be done here, just thought maybe we can save other poor souls from getting lost like this as well.

@javiereguiluz
Copy link
Member

Closing in favor of #15908, a meta-issue that groups all pending security-related issues so we can easily check them.

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

No branches or pull requests

3 participants