Wednesday, March 30, 2011

Re: Spring Security with GWT : how to condition access to fields in a page ?

Thanks but the problem is that this framework is not officially supported by GWT.
It's risky to use it as long as it's not a standard.
Maybe in a future version of GWT...

If someone knows another way to do it, please let me know.

On Wed, Mar 30, 2011 at 1:24 PM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
Check this framework: http://code.google.com/p/acris/wiki/SecurityClient



2011/3/30 Celinio <cel975@gmail.com>
Hi,
i read that someone else already asked for information on how to use Spring Security with GWT,
so i will not ask again.

I got a more detailed question then :
with Spring security, you can use tags in JSP pages to restrict access to areas of pages, or fields.
For instance :
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>   <sec:authorize access="hasRole('gestionnaire')">   This content will only be visible to users who have the "supervisor" authority in their list of <tt>GrantedAuthority</tt>s.   </sec:authorize>

Of course with GWT I cannot do that since there are no JSP.

How do i restrict access to fields with GWT then ?
I want to be able to hide them if the user does not have the required role.
I also want to be able to display them but disable them (read-only for a textfield for instance) if the user does not have the
required role.

Thanks for helping.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment