Security [message #57208] |
Sun, 04 November 2007 10:33  |
Eclipse User |
|
|
|
Originally posted by: m.n.com
Does anyone have examples of implementing security in RAP?
|
|
|
|
|
|
|
|
|
|
|
Re: Security [message #57833 is a reply to message #57365] |
Mon, 05 November 2007 21:50   |
Eclipse User |
|
|
|
Originally posted by: eclipse-dev.volanakis.de
Hi Mark,
a while ago I read an interesting print article about implementing a
custom authentication and authorization mechanism in an RCP App.
Unfortunately it is in German and not available on the net...
Berechtigungen in Rich Clients implementieren
Autorisierung in RCP-Anwendungen
Michael Buchholz
Eclipse Magazin, Vol 12 / III/2007
If I remember correctly (it has been a while) the spirit of the above
article was to have a central authorization manager (singleton; similar
to a security manager) and then to be "disciplined" to include calls to
that manager at the points where it matters; example
View.createControl() could return an empty UI when not authorized /
actions would check this in run() method etc. In the article they had
abstract classes that did that so that developers just had to subclass
those. Drawback of this approach is that it does not work very well when
you want to integrate 3rd-party views / actions / etc which you only
have in binary form.
Regards,
Elias.
Mark wrote:
> Elias,
>
> Thanks for input. Do you have suggestions on how to implement
> "Authorization" in RAP then? I have parts of the app that should
> probably on be available based on roles.
>
> As for modifying the plugin.xml, since it is on the server I doubt a
> use could modify it. They could with a standard RCP app.
>
>
>
>
> Elias Volanakis wrote:
>> Hi Mark,
>>
>> IMHO, the suggestion in this article is ill advised. The primary
>> intention of the capabilities / activities is to reveal UI elements as
>> the user becomes more proficient with an application. It can be used
>> for "security" but is very easy to bypass (for example by manually
>> modifying the plugin.xml files).
>>
>> Anyway, if you want to go down this path you should check if rap
>> supports the org.eclipse.ui.activities extension point.
>>
>> Just my 2 cents.
>>
>> Regards,
>> Elias
>>
>>
>> Mark wrote:
>>> Mark wrote:
>>>> Does anyone have examples of implementing security in RAP?
>>> Ok, I found the right keyword to search on. I found something here
>>> to help with "logon".
>>>
>>> I also found this -
>>> http://www.ibm.com/developerworks/library/os-ecl-rcpsec/inde x.html
|
|
|
Re: Security [message #57981 is a reply to message #57833] |
Tue, 06 November 2007 10:55   |
Eclipse User |
|
|
|
Originally posted by: m.n.com
Hi Elias,
Thanks for you input. And thanks to everyone else!
Elias Volanakis wrote:
> Hi Mark,
>
> a while ago I read an interesting print article about implementing a
> custom authentication and authorization mechanism in an RCP App.
> Unfortunately it is in German and not available on the net...
>
> Berechtigungen in Rich Clients implementieren
> Autorisierung in RCP-Anwendungen
> Michael Buchholz
> Eclipse Magazin, Vol 12 / III/2007
>
> If I remember correctly (it has been a while) the spirit of the above
> article was to have a central authorization manager (singleton; similar
> to a security manager) and then to be "disciplined" to include calls to
> that manager at the points where it matters; example
> View.createControl() could return an empty UI when not authorized /
> actions would check this in run() method etc. In the article they had
> abstract classes that did that so that developers just had to subclass
> those. Drawback of this approach is that it does not work very well when
> you want to integrate 3rd-party views / actions / etc which you only
> have in binary form.
>
> Regards,
> Elias.
>
> Mark wrote:
>
>> Elias,
>>
>> Thanks for input. Do you have suggestions on how to implement
>> "Authorization" in RAP then? I have parts of the app that should
>> probably on be available based on roles.
>>
>> As for modifying the plugin.xml, since it is on the server I doubt a
>> use could modify it. They could with a standard RCP app.
>>
>>
>>
>>
>> Elias Volanakis wrote:
>>
>>> Hi Mark,
>>>
>>> IMHO, the suggestion in this article is ill advised. The primary
>>> intention of the capabilities / activities is to reveal UI elements
>>> as the user becomes more proficient with an application. It can be
>>> used for "security" but is very easy to bypass (for example by
>>> manually modifying the plugin.xml files).
>>>
>>> Anyway, if you want to go down this path you should check if rap
>>> supports the org.eclipse.ui.activities extension point.
>>>
>>> Just my 2 cents.
>>>
>>> Regards,
>>> Elias
>>>
>>>
>>> Mark wrote:
>>>
>>>> Mark wrote:
>>>>
>>>>> Does anyone have examples of implementing security in RAP?
>>>>
>>>> Ok, I found the right keyword to search on. I found something here
>>>> to help with "logon".
>>>>
>>>> I also found this -
>>>> http://www.ibm.com/developerworks/library/os-ecl-rcpsec/inde x.html
|
|
|
Re: Security [message #64492 is a reply to message #57208] |
Tue, 04 December 2007 13:24  |
Eclipse User |
|
|
|
Originally posted by: just4lists.nospammail.net
We are using the OSGi User Admin service (org.eclipse.equinox.useradmin).
Joel Oliveira
"Mark" <m@n.com> escreveu na mensagem news:fgkoob$rtc$1@build.eclipse.org...
> Does anyone have examples of implementing security in RAP?
|
|
|
Powered by
FUDForum. Page generated in 0.05053 seconds