Re: User roles in GWT applications

2011-03-08 Thread csaffi
I'm also considering java security frameworks like Apache Shiro and Spring Security... What do you think about them? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com.

Re: User roles in GWT applications

2011-03-08 Thread Lukasz
UserMgr is a simple class containing the functionality needed for the UI to do the roles checks, login logout user etc. The list of roles assigned to the user is not a part of the UserMgr itself but it's a property of the User entity -a simple HashSet to be precise. The UserMgr has a property

Re: User roles in GWT applications

2011-03-07 Thread csaffi
Thank you Lukasz. In my app I'm doing the security checks on the client- as well as on the server-side. After the user successfully logged into the app, the UserManager containes among other things a set of roles which are assigned to the current user enabling the role-checks without any rpc-

Re: User roles in GWT applications

2011-03-07 Thread Antonio Blanco Alzola
The project looks promising, but I wasn't able to get acris-security to work I include acris-security-core 1.1.1-SNAPSHOT as a maven dependency the way they explain on their wiki (no exactly the same because acris-security doesn-t exist, I had to use acris-security-core) but when I add the

Re: User roles in GWT applications

2011-03-03 Thread Lukasz
In my app I'm doing the security checks on the client- as well as on the server-side. After the user successfully logged into the app, the UserManager containes among other things a set of roles which are assigned to the current user enabling the role-checks without any rpc- callbacks. The client

Re: User roles in GWT applications

2011-03-02 Thread csaffi
A possible solution could be to make an RPC call to the server during onModuleLoad. This RPC call would generate the necessary Widgets and/ or place them on a panel and then return this panel to the client end. What do you think about this? -- You received this message because you are

Re: User roles in GWT applications

2011-03-02 Thread Lukasz
using the MVP pattern in my app). When the presenter is rendering the view, it can check which functionality should be enabled or disabled. HTH, Lukasz On 1 Mrz., 18:47, csaffi csaff...@gmail.com wrote: Hi everybody, I'm wondering if you could suggest me any way to implement user roles in GWT

Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
csaff...@gmail.com wrote: Hi everybody, I'm wondering if you could suggest me any way to implement user roles in GWT applications. I would like to implement a GWT application where users log in and are assigned roles. Based on their role, they would be able to see and use different

Re: User roles in GWT applications

2011-03-02 Thread zixzigma
could you please explain, why the check on client-side is necessary, if the server does the check ? and on the client-side, do you mean having a UserRoles object, which contains user's permission ? Thank You -- You received this message because you are subscribed to the Google Groups Google

Re: User roles in GWT applications

2011-03-02 Thread zixzigma
if using GWT Activities, do you think it is better to perform the check in Activities themselves or in ActivityMappers (or ActivityFactories) ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: User roles in GWT applications

2011-03-02 Thread csaffi
On 2 Mar, 14:31, Lukasz l.plotni...@googlemail.com wrote: I'm doing it by providing a self-implemented UserManager object on the client. It contains the currently signed in user and provides methods for access or role checks e.g. canEditUser(). This UserManager object is an singleton injected

Re: User roles in GWT applications

2011-03-02 Thread csaffi
On 2 Mar, 16:41, Ben Imp benlee...@gmail.com wrote: This is basically what I have implemented in my system as well.  Our user roles are in the DB and I keep a copy on the client so all of the presenters can inspect it to see what the user can do. I should mention that double-checking the

Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
Depends on the situation, but in general its much easier on users if things they can't do/edit aren't shown to them. Or, alternatively, if they are shown, be shown with some visual indicator of restricted access. A panel full of blank values with no UI feedback is somewhat unintuitive. A panel

User roles in GWT applications

2011-03-01 Thread csaffi
Hi everybody, I'm wondering if you could suggest me any way to implement user roles in GWT applications. I would like to implement a GWT application where users log in and are assigned roles. Based on their role, they would be able to see and use different application areas. Thank you very much

Re: User roles in GWT applications

2011-03-01 Thread zixzigma
I am also interested in finding a decent solution for this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to

Re: User roles in GWT applications

2011-03-01 Thread saida dhanavath
to implement user roles in GWT applications. I would like to implement a GWT application where users log in and are assigned roles. Based on their role, they would be able to see and use different application areas. Thank you very much in advance for your help! -- You received this message because

Re: User roles in GWT applications

2011-03-01 Thread André Salvati
What do you think about this one? http://code.google.com/p/acris/wiki/Security -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send

Re: user roles for GWT applications

2009-09-16 Thread Steve Lancey
I have a question from a slightly different angle: Is there a common way / design strategy to show/hide or enable/disable gwt widgets based on a predefined role/access rights. i.e. if a user with role 'admin' is acessing the application an admin button is visible, which is not visible in the

Re: user roles for GWT applications

2009-08-21 Thread Phineas Gage
On Aug 20, 4:46 pm, Laird Nelson ljnel...@gmail.com wrote: On Thu, Aug 20, 2009 at 9:39 AM, Zé Vicente josevicentec...@gmail.comwrote: I would say that all you need to do is to use runAsync() to saparate Adm features from regular features and then make sure that on server side you check

Re: user roles for GWT applications

2009-08-20 Thread Zé Vicente
I would say that all you need to do is to use runAsync() to saparate Adm features from regular features and then make sure that on server side you check for each operation, if the user has the good credential to execute it. That is all. Zé Vicente On Aug 19, 4:34 pm, Phineas Gage

Re: user roles for GWT applications

2009-08-20 Thread Laird Nelson
On Thu, Aug 20, 2009 at 9:39 AM, Zé Vicente josevicentec...@gmail.comwrote: I would say that all you need to do is to use runAsync() to saparate Adm features from regular features and then make sure that on server side you check for each operation, if the user has the good credential to

user roles for GWT applications

2009-08-19 Thread Phineas Gage
I would like to implement a GWT application where users log in and are assigned roles, as is typical in many web applications. Based on their role, they would be able to see and use different areas of the application. The trouble when using GWT is, because the entire application is transmitted

Re: user roles for GWT applications

2009-08-19 Thread mars1412
just my 2 cents: 1) Even though users cannot execute, for example, administrative RPC methods, by reverse engineering the JavaScript they may still be able to read sensitive information regarding the format or nature of the available administrative requests. Careful developers may be able to

Re: user roles for GWT applications

2009-08-19 Thread Phineas Gage
On Aug 19, 4:02 pm, mars1412 martin.trum...@24act.at wrote: just my 2 cents: hiding or obfuscating will not stop a detrmined attacker anyway, so there's no reason to worry about that. that does of course not mean, that you shouldn't do it, if it's easy: e.g. of course use the OFB mode when