Hi Juergen,

My last post was little confusing, and I was very confused then, and still 
kinda now. What I meant was:
I've extended Torque Security Service based upon "Torque Security Service 
Howto" and threads on "Extending User", so I have our own sets of tables, such 
as person (TURBINE_USER), group (TURBINE_GROUP), role (TURBINE_ROLE), 
permission (TURBINE_PERMISSION), etc., so I can have additional columns in 
those tables. However, when I tried to use TurbineSecurity's grant and revoke 
methods, TURINBE_USER_GROUP_ROLE, and TURBINE_ROLE_PERMISSION are hard-coded in 
turbine, so I have to use those two tables in Turbine Security schema to store 
user_group_role and role_permission information, rather than having my own set 
of tables, am I right on this?
I hope this makes sense, and please let me know if there is anything I've done 
wrong.
Thanks,

David


-----Original Message-----
From: Jürgen Hoffmann [mailto:[EMAIL PROTECTED]
Sent: Tue 8/15/2006 12:30 PM
To: 'Turbine Users List'
Subject: AW: How to create group and grant user?
 
Hi David,

seriously, why were you implementing your own Security Service?

What Use Case made you do that?

Kind regards

Juergen Hoffmann

-----Ursprüngliche Nachricht-----
Von: Zhao, David [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 11. August 2006 19:08
An: Turbine Users List; [EMAIL PROTECTED]
Betreff: How to create group and grant user?

Hi there,

I've trying to implement the turbine security service to create group, grant
user with certain roles. I've successfully extended the torque security
service (I think), with our own set of tables for security, and had to
override several methods, such as revoke(User user, Group group, Role, role)
where UserGroupRolePeer is hard coded to use TURBINE_USER_GROUP_ROLE table
(please correct me if I'm wrong) in TorqueSecurityService. Now when I create
a group, and grant a user a role to the group, all entries will be written
to our own tables. Now the problem is, if I'm trying to grant the "manager"
role (existing role) to the user to this group by using
TurbineSecurity.grant(data.getUser(), new TorqueRole("manager")), the role
id is always inserted as 0. What's the best practice to do this? am I doing
something wrong here?
Thanks,

David 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.9/416 - Release Date: 8/10/2006
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

!EXCUBATOR:1,44dcb991114092093554714!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to