Hi,
thinking about how to secure my app best. I currently have spring security set up and working nicely. I'm using spring web services as the datasource endpoints and have methodbased security.
However, i have a couple of different client roles "user", "reporter" "admin", etc and there's, of course, a requirement that the users should have different views and different operations available depending on the role.
A simple example is that an "system events" tab is only visible to admins, or that an "edit" button should be greyed out for all but admins.
The thing i'm wondering about is this - if i enforce this through the same entrypoint (for example, by having a switch in the "onmoduleload" that calls a different "view-setup-class" depending on the role, all client-side logic is still downloaded and potentially visible for all users, regardless of the role.
If i for example wouldn't want "reporter" user to know that it's possible to view a systemlog, i'd have to have different entrypoints, right?
Thoughts? Perhaps i'm too paranoid... :)
thinking about how to secure my app best. I currently have spring security set up and working nicely. I'm using spring web services as the datasource endpoints and have methodbased security.
However, i have a couple of different client roles "user", "reporter" "admin", etc and there's, of course, a requirement that the users should have different views and different operations available depending on the role.
A simple example is that an "system events" tab is only visible to admins, or that an "edit" button should be greyed out for all but admins.
The thing i'm wondering about is this - if i enforce this through the same entrypoint (for example, by having a switch in the "onmoduleload" that calls a different "view-setup-class" depending on the role, all client-side logic is still downloaded and potentially visible for all users, regardless of the role.
If i for example wouldn't want "reporter" user to know that it's possible to view a systemlog, i'd have to have different entrypoints, right?
Thoughts? Perhaps i'm too paranoid... :)
Comment