Questions tagged [symfony-security]

The Symfony security component is a standalone library that can be used outside of Symfony2 projects.

Symfony security component provides a complete security system for your web application. It ships with facilities for authenticating using HTTP basic or digest authentication, interactive form login or X.509 certificate login, but also allows you to implement your own authentication strategies. Furthermore, the component provides ways to authorize authenticated users based on their roles, and it contains an advanced ACL system.

Useful links

276 questions
-1
votes
2 answers

User submit form, but don't save until he register or login

I have many forms that user fill on single page, but after user make post, controller will check if form is valid and if user is already logged in then save info. Need help with If user is not logged in, then redirect him to registration page where…
Basit
  • 16,316
  • 31
  • 93
  • 154
-1
votes
2 answers

Can't get the logout action sonata-project

This is my security.yml file firewalls: main: pattern: ^/ form_login: provider: fos_userbundle csrf_provider: form.csrf_provider login_path: project_frontend_main_index logout: …
sasser
  • 3
  • 4
-2
votes
1 answer

Symfony 5 hanndle access for external tools (knpsnappy)

In a Symfony 5.x project I use knplabs/knp-snappy-bundle. Having private data-folders for different users results in generating PDF-documents that require images from folders which are not publicly accessable. When trying to generate a PDF-document…
-2
votes
1 answer

Symfony add logic to logout route

In a Symfony 5.0 Application I want to add custom logic for cleanup reasons when the user loggs out. What I have currenty is what is described in the docs: https://symfony.com/doc/current/security.html#logging-out As the logout() function in the…
user3440145
  • 793
  • 10
  • 34
-2
votes
1 answer

Allow access to specific pages

I am on Symfony 4.3.2, trying to get a way to allow users having role (CommissionOwner) access to only specific pages. Users having role other than 'CommissionOwner' can access all pages. Users having role 'CommissionOwner' can access only…
Abdul Ghaffar
  • 228
  • 3
  • 14
-2
votes
1 answer

How to preprocess the username in Symfony Security

I am using Symfony Security for the login functionality. My username field is encrypted in the database and I guess that Symfony Security is not able to find the correct user when logging in, because of that. Currently I have an empty login action,…
rablentain
  • 6,641
  • 13
  • 50
  • 91
1 2 3
18
19