Has anyone used some RBAC (or other access control) in a GWT based project deployed in App Engine?
Or actually how to manage GWT-RPC calls to by role based?
Or is it easier to only "send the code" to client browser based on user's login credentials?
Ideas, libraries, all is welcome!
Thank you
You could add a roles property to your user class:
Then, when you want to know whether a user can do something, do something like this:
What you need to model is who is in what roles. This is a many-to-many relationship (at least, in most applications). This is one way to implement such a relationship, but there are other ways, which may be more appropriate to your situation. Here's a page that has some advice on relationship modeling in App Engine: https://developers.google.com/appengine/articles/modeling