user641595
user641595

Reputation: 61

Eclipse RCP authentication

I would like to know how to implement authentication in Eclipse RCP. I have started an app and I have two views, one for admin and one for a regular user. At startup I want to show the login dialog and depending of type of user to show a view. Can anyone tell me which is the best way to do that? Thanks!

Upvotes: 1

Views: 624

Answers (2)

Gaurav Singh
Gaurav Singh

Reputation: 13487

I'll suggest you that create a single view for both admin and regular user . Just create different widgets for the admin and regular user . Before creating the view just hook the Login Dialog and on the basis of authentication from the login dialog load the widgets in the view .

Upvotes: 2

Tonny Madsen
Tonny Madsen

Reputation: 12718

There are many different ways to do this :-)

I usually recommend using activities as these are completely independent of the code for the view, perspectives, commands, etc.

See this blog entry on how to set-up the activities.

Upvotes: 1

Related Questions