Anyone have any idea about this or know where I can look/read to find
out more?  I'm totally at a loss here.  It looks like there are a
bunch of interesting methods for the ServletRequest class but
HttpServletRequest doesn't have much I can do with it.

On Jun 10, 3:31 pm, eags <eagsala...@gmail.com> wrote:
> I'd like to use Filter to implement all my security checks as a
> gateway to each gwt rpc call.  I'm going to include a sessionID from
> the client as an argument to each RPC call.  I'd like my filter in
> doFilter to be able to pull off that argument and check if the user is
> logged in and see what their role is.
>
> In the example's I've seen, when implementing the doFilter() method it
> isn't clear how I can get that argument off the request.  I looked at
> the methods for HttpServletRequest and didn't say anything useful.
>
> Also, once I have the request I'd like to be able to check if the role
> is appropriate for the method being invoked but it isn't clear to me
> how I can do this either without having groups of methods for each
> role and a specific filter that checks the specific role for each
> group.  Maybe not a bad idea I guess.  I've seen other slicker stuff
> using annotations that maybe the Filter could access the value of to
> compare the user's role with the annotated required role for the
> called method?  Any info would be good here.
>
> In either case I would just throw an AuthenticationException right
> there and let the client handle it in the AsyncCallback's onFail().
>
> Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to