symfony-security Questions
8
Solved
I'd like to log the user in right after the registration process, without passing by the login form.
Is this possible ? I've found a solution with FOSUserBundle, but I'm not using it on the projec...
Carhop asked 3/3, 2012 at 21:35
2
Solved
I'm using Symfony 3.4, and I would like to logout my user at the end of my action in my controller.
This is the action
public function changeUserEmail() {
/* change the user email */
/* perform...
Flitter asked 26/10, 2018 at 9:43
1
I want verify the existing password for a user (to allow them to change their password).
I thought to go the following route but ran into the problem that the hashed password always shows up as a d...
Lowrance asked 3/3, 2022 at 10:0
7
Solved
I read here how to check the login status of a user by inside a twig template for a Symfony2-based website.
However, I need to know how to check if the user is logged in from inside a controller. I...
Repulsion asked 22/4, 2012 at 19:55
8
Solved
First off, I'm not using FOSUserBundle and I can't because I'm porting a legacy system which has its own Model layer (no Doctrine/Mongo/whatsoever here) and other very custom behavior.
I'm trying ...
Pagas asked 10/12, 2012 at 10:2
1
Solved
I want to use the security.interactive_login event to update my User's last login field.
The event is successfully registered:
php bin/console debug:event-dispatcher security.interactive_login
Reg...
Investiture asked 5/8, 2020 at 12:11
2
Solved
I updated my Symfony environment form 3.3 to 4.0. After the update I have problems with the login (user provided by database). When I submit the login form, I just got right back to the login form ...
Tellus asked 6/12, 2017 at 13:19
1
I am already loggedin to main domain. Say example.com (app developed in legacy kohana). I am trying to login to subdmain, say foo.bar.example.com .
foo.example.com is symfony app. Below is my con...
Christan asked 20/9, 2016 at 11:24
3
Solved
I have provided a pre build project on symfony in which the logout session redirects to the login screen, but now I want that page to redirect on the home page instead. What I have found in the cod...
Pouliot asked 27/5, 2015 at 7:55
2
Solved
i create service but it doesn't work
services:
redirectionListener:
class: Front\EcommerceBundle\Listener\RedirectionListener
arguments: ["@service_container","@session"]
tags:
- { name: kern...
Micheal asked 10/4, 2016 at 15:44
2
Solved
Let's say I have an invoice entity. Invoice belongs to some user (invoices.user_id).
If the user enters myapp.com/invoices/1 he needs to sign in to gain access to his invoice. That's pretty normal...
Fillister asked 30/7, 2018 at 14:16
1
Solved
I am running a web page based on Symfony 2.7. The page uses the FOSUserBundle for user management and authentication.
I can observe in the log files, that the page is "attacked" quite often by bru...
Amnesia asked 12/7, 2016 at 8:31
2
Solved
I'm defining security for my website in security.yml
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, r...
Subside asked 18/1, 2016 at 14:59
1
Solved
TL;DR: how can you add custom constraints (i.e. security voters) to transitions?
My application needs some workflow management system, so I'd like to try Symfony's new Workflow Component. Let's ta...
Argol asked 10/1, 2017 at 10:18
1
i am trying to prevent redirect to login page when user is trying to access a page without token, i have single page app and i am only putting the ajax requests under firewall and when a user is do...
Goalie asked 27/6, 2015 at 21:52
1
Solved
I removed in-memory provider and DemoBundle, and added database provider, as per tutorial. But I'm getting InvalidArgumentException: "You must at least add one authentication provider".
My securi...
Unsaid asked 27/3, 2015 at 19:58
1
Solved
I'm trying to implement a custom Voter.
From the controller I call it this way:
$prj = $this->getDoctrine()->getRepository('AppBundle:Project')->findOneById($id);
if (false === $this->...
Panteutonism asked 16/12, 2014 at 16:30
1
Solved
I'm trying to use @Security annotations for my routes. Like this:
/**
* @return Response
* @Route("/action")
* @Security("has_role('ROLE_USER')")
* @Template()
*/
public function someAction()...
Paderna asked 20/6, 2014 at 13:8
3
I have 2 bundles in my project:
src/Korea/AlmacenBundle
src/Galvez/RepuestosBundle
Each with their own database
korea_motos -> AlmacenBundle
galvez_motos -> RepuestosBundle
Actually my s...
Chemisorption asked 22/4, 2013 at 18:56
1
Solved
I noticed that my voters are solicited even for SuperAdmin users.
Is it working as expected ?
If yes, I thought that the philosophy of SuperAdmin is that they systematically have all rights, so t...
Keil asked 5/8, 2013 at 14:14
1
Solved
I have two firewalls:
api (for API calls)
main (for everything else)
My client app login happens via the main firewall. However, it does interact with endpoints under the api firewall to fetch ...
Unlike asked 31/1, 2012 at 5:51
1
Solved
In Symfony 2 you can set up a target for the logout so that after logout you will be redirected to /main. However with the login you will be redirected to /. Is there a manner to setup a target for...
Tsimshian asked 4/12, 2011 at 10:43
1
© 2022 - 2024 — McMap. All rights reserved.