Tuesday, June 5, 2012

Re: Resubmitting RequestFactory request when server side logic requires it

You can create your own custom annotation (for example : LoggedIn). Apply this on all methods you want to authenticate the user/ session to be validated. 

Better do it the opposite way if you only have few methods that are allowed for unauthenticated users (I think thats more typically), e.g. create a @AllowUnauthenticated annotation and if its absent assume the user must be logged in. That way you have few "opt-out" methods instead of many "opt-in" methods.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Y7SWwBLfRlkJ.
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