Authentication and Authorization at the RCP Experience Workshop

The first hour (of four) of the RCP Experience Workshop at Eclipse Summit Europe is over. The main topic of discussion thus far has been authentication and authorization. Essentially, the concern is that of hiding (or at least disabling) features based on permissions (authorization) of the user. Several ideas have been bounced about.

This is a pretty fundamental concept that is an important part of many RCP applications. Buttons, menus, views, editors, and more need to be controlled. A role-based scheme was suggested; ideally, different bits of functionality can be declaratively ‘marked’ as being appropriate for certain roles. The platform project is probably most ideally suited to solve this, but there are other possible approaches. One suggested approach was to use aspects to tune the behaviour of existing classes. It was also suggested that activities might suit the bill. Another possibility is to use the Equinox transformation functionality to dynamically change plugin.xml files as they are loaded to exclude functionality that we don’t want to expose to the current user.

I found the last suggestion very interesting. It was suggested that we consider extending the expression framework to permit expressions based on user role. This has the benefit of already being used by the command framework and so will be immediately available for toolbar buttons and menus. Unfortunately, the expression framework isn’t used by views, editors, wizards, and lots of other useful bits. Even with this apparent restriction, this option seems pretty viable.

The workshop continues. Further updates as events warrant…

This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to Authentication and Authorization at the RCP Experience Workshop

  1. Martin J?ger says:

    For a solution with activities you may also check this presentation from the Jazoon07 conference:

  2. Pingback: Eclipse hints, tips, and random musings » Blog Archive » Follow me to Riena

  3. Tom Schindl says:

    I’ve just uploaded an example to show ISourceProvider in action to the Bug

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s