Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Multiple members zones with multiple entities and enabling switch_user
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nyro  
View profile  
 More options Feb 5 2012, 12:06 pm
From: Nyro <ced...@nyrodev.com>
Date: Sun, 5 Feb 2012 09:06:51 -0800 (PST)
Local: Sun, Feb 5 2012 12:06 pm
Subject: [Symfony2] Multiple members zones with multiple entities and enabling switch_user
Hi everybody,

I'm very new to symfony2. I read every document found on symfony.com
and a bunch of other found on the web.

I'm still struggling with a -maybe- basic problem and probably very
common.

Here is the explanation in details:

- I have designed my databse to have 2 tables : member and webmaster
- Member will have some basic features on the public website to post
items on the website (let say, like a forum)
- Member has only the role ROLE_USER
- Webmaster will have a access to a totally different zone, like a
backend
- Webmaster has the role ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH
(and a few hove them will have ROLE_SUPER_ADMIN)

For now, this is very basic and I made it work using 2 differents
firewalls, each one using the corresponding entity provider.

But now, I want to implement the great switch user feature. The idea
here is to let webmaster connect as Member to see exactly what they
see.

After many tries, I can't make it work.

Can somebody help me to make it works?

I'm totally open to write some listener, extends the Symfony security
layer or something like that. I just can't find where to start and
which direction to take to do it greatly.

Thanks in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[Symfony2] Multiple members zones with multiple entities and enabling switch_user" by Hristo Salabashev
Hristo Salabashev  
View profile  
 More options Feb 6 2012, 5:20 am
From: Hristo Salabashev <icho...@gmail.com>
Date: Mon, 6 Feb 2012 12:20:51 +0200
Local: Mon, Feb 6 2012 5:20 am
Subject: Re: [symfony-devs] [Symfony2] Multiple members zones with multiple entities and enabling switch_user

Hi Nyro,

i can't assist you directly as i never tried to use two separate user
providers but i suspect your problem lies there.

Why exactly do you separate the user to Member and Webmaster? A lot easier
case would be just to have a field "webmaster" in  the User entity and
provide the roles based on that.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Multiple members zones with multiple entities and enabling switch_user" by Nyro
Nyro  
View profile  
 More options Feb 7 2012, 5:25 pm
From: Nyro <ced...@nyrodev.com>
Date: Tue, 7 Feb 2012 14:25:07 -0800 (PST)
Local: Tues, Feb 7 2012 5:25 pm
Subject: Re: [Symfony2] Multiple members zones with multiple entities and enabling switch_user
Hi Hristo,

I don't want to do that as they don't share the same properties
(member have a lot of them).
Moreover it's simpler regarding the database design to separate these
enties separates.

For now I'm trying by overwritting Security Bundle and many other
feature.
It's kind of tricky for now, and I still have work to do, but I kind
of manager to start have something working.

If I manage to do exactly what I need, I will share it.

In the meantime I would like to have some feedback if others did it
before.

On Feb 6, 11:20 am, Hristo Salabashev <icho...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »